mmtk-core icon indicating copy to clipboard operation
mmtk-core copied to clipboard

ImmixAllocator should use BumpAllocator fastpath

Open qinsoon opened this issue 2 years ago • 0 comments

ImmixAllocator uses the same fast path allocation as BumpAllocator. Also a VM's compiler can generate immix fastpath in the same way as bump pointer allocator (except that the field offsets may be different).

It is unclear how to achieve this in the code. One possible implementation is to embed a BumpAllocator in ImmixAllocator, and use it for the fastpath allocation.

A JIT compiler would only need to know what allocator fastpath to generate. So maybe we can have a separate type for AllocatorFastpath?

qinsoon avatar Mar 07 '22 03:03 qinsoon