mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-02 02:32:27 +00:00
Revert misguided dlmalloc optimization
This commit is contained in:
parent
f2c8ddbbe3
commit
388e236360
3 changed files with 24 additions and 34 deletions
7
third_party/dlmalloc/mspaces.inc
vendored
7
third_party/dlmalloc/mspaces.inc
vendored
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue