mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-02 02:32:27 +00:00
Simplify memory manager
This commit is contained in:
parent
5a9a08d1cf
commit
01587de761
40 changed files with 451 additions and 311 deletions
3
third_party/dlmalloc/init.inc
vendored
3
third_party/dlmalloc/init.inc
vendored
|
@ -1,5 +1,6 @@
|
|||
#include "libc/sysv/consts/auxv.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
|
||||
/* ---------------------------- setting mparams -------------------------- */
|
||||
|
||||
|
@ -48,7 +49,7 @@ __attribute__((__constructor__(49))) int init_mparams(void) {
|
|||
size_t gsize;
|
||||
|
||||
#if defined(__COSMOPOLITAN__)
|
||||
psize = getauxval(AT_PAGESZ);
|
||||
psize = getpagesize();
|
||||
gsize = DEFAULT_GRANULARITY ? DEFAULT_GRANULARITY : psize;
|
||||
#elif !defined(WIN32)
|
||||
psize = malloc_getpagesize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue