-
Notifications
You must be signed in to change notification settings - Fork 164
Open
Description
pub const HEAP_LENGTH: usize = 32 * 1024;currently HEAP_LENGTH is 0x8000 which is the minimum and default heap length. Maximum can go up to 0x40000.
we should release the limit. also for bump allocator, instead of allocating from the end of the heap, we can grow increasingly. when there's no enough space to use, an runtime access violation will be thrown and execution will halt.
we should provide user a macro to specify heap length. the downside of setting it directly to max is that the compiler cannot generate compile-time optimization, so giving the user power to change is a better solution.
@febo since you're cleaning up the allocator can you take this one?
febo
Metadata
Metadata
Assignees
Labels
No labels