asmjit::JitAllocator::CreateParams Struct Reference [¶]
Parameters that can be passed to JitAllocator
constructor.
Use it like this:
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).
Block size must be equal to or greater than page size and must be power of 2. If the input is not valid then the default block size will be used instead.
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.