Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Make mono_threads_enter_gc_safe_region_unbalanced_with_info cheaper on non-bitcode platforms #9414

@lambdageek

Description

@lambdageek

We already have a fast path out of mono_threads_enter_gc_safe_region_unbalanced_with_info if we're not even tracking the thread state transitions to BLOCKING.

But we could also make it faster under full coop on "normal" platforms where we don't need to take a snapshot of the stack. It's enough just to copy the callee-saved registers to the normal stack.

Also if we're using hybrid suspend on a "normal" platform, we'll be preemptively suspending the thread while it's in GC Safe, so we don't need to save the registers either.

Part of #6921

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions