[wasm][coreclr] Add RhpNewFast allocators#120896
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR implements three previously stubbed-out fast allocation functions (RhpNewFast, RhpNewFastAlign8, and RhpNewFastMisalign) in the portable CoreCLR runtime. These functions provide optimized object allocation paths by attempting to allocate directly from the thread's allocation context before falling back to slower allocation methods.
Key Changes:
- Replaced
PORTABILITY_ASSERTstubs with full implementations for all three allocator functions - Added thread-local allocation context management with fast-path allocation logic
- Implemented alignment handling for 8-byte aligned and misaligned allocations using dummy objects
|
Tagging subscribers to this area: @mangod9 |
|
I have noticed that a few of the existing helpers in this file have unnecessary |
Could you please fix this too? |
|
Hope I didn't forget anything else. |
|
Ah, I did, I wanted to ifdef the align8/misalign |
No description provided.