Revert misguided dlmalloc optimization

This commit is contained in:
Justine Tunney 2024-06-22 09:55:02 -07:00
parent f2c8ddbbe3
commit 388e236360
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
3 changed files with 24 additions and 34 deletions

View file

@ -23,13 +23,6 @@ static mstate init_user_mstate(char* tbase, size_t tsize) {
return m;
}
// [jart] rather than calling mmap() 96 times from _start() just use .bss
static void init_heap(union Heap *heap, int locked) {
mstate m = init_user_mstate(heap->mspace, sizeof(*heap));
m->seg.sflags = USE_MMAP_BIT;
set_lock(m, locked);
}
mspace create_mspace(size_t capacity, int locked) {
mstate m = 0;
size_t msize;