AsmJit
Low-Latency Machine Code Generation
Parameters that can be passed to JitAllocator
constructor.
Use it like this:
Allocator options.
No options are used by default.
Base size of a single block in bytes (default 64kB).
Base granularity (and also natural alignment) of allocations in bytes (default 64).
Since the JitAllocator
uses bit-arrays to mark used memory the granularity also specifies how many bytes correspond to a single bit in such bit-array. Higher granularity means more waste of virtual memory (as it increases the natural alignment), but smaller bit-arrays as less bits would be required per a single block.
Patter to use to fill unused memory.
Only used if JitAllocatorOptions::kCustomFillPattern is set.