Skip to content

[browser][MT] JS Interop should respect GC pauses #76963

Description

@lambdageek

Block threads (esp the main thread) from entering the runtime from the JS event loop when a GC Stop-The-World is active.
The thread should safepoint in native, or (better) somehow defer its work and return to the JS event loop

Current offenders are

  • reflection in init_managed_exports
  • mono_wasm_gc_lock, mono_wasm_gc_unlock used by Blazor
  • mono_wasm_read_as_bool_or_null_unsafe used by Blazor
  • GC roots in hybrid globalization

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions