Concurrent GC uses recursive Crst and does rely on reentrancy when scanning handles asynchronously.
NativeAOT ignores the CRST_REENTRANCY and just uses the default for the given platform. On Unix the pthread default is not recursive, thus BGC, if enabled, occasionally deadlocks.
Concurrent GC uses recursive Crst and does rely on reentrancy when scanning handles asynchronously.
NativeAOT ignores the
CRST_REENTRANCYand just uses the default for the given platform. On Unix the pthread default is not recursive, thus BGC, if enabled, occasionally deadlocks.