Closed
Description
Context: #99552 (comment)
The allocation helpers in CoreCLR have an unnecessary extra indirection. The alloc_context can be thread static directly. The extra indirection via Thread is unnecessary. The allocation helpers in native AOT do not have this indirection. It would be nice to port the improvement to regular CoreCLR and unify how the allocation helpers work.