mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-10-05 22:21:01 +00:00
Remove distracting code from dlmalloc
This commit is contained in:
parent
af7bd80430
commit
c8c81af0c7
6 changed files with 28 additions and 467 deletions
8
third_party/dlmalloc/system.inc
vendored
8
third_party/dlmalloc/system.inc
vendored
|
@ -13,11 +13,7 @@
|
|||
|
||||
#define use_mmap(M) ((M)->mflags & USE_MMAP_BIT)
|
||||
#define enable_mmap(M) ((M)->mflags |= USE_MMAP_BIT)
|
||||
#if HAVE_MMAP
|
||||
#define disable_mmap(M) ((M)->mflags &= ~USE_MMAP_BIT)
|
||||
#else
|
||||
#define disable_mmap(M)
|
||||
#endif
|
||||
|
||||
#define use_noncontiguous(M) ((M)->mflags & USE_NONCONTIGUOUS_BIT)
|
||||
#define disable_contiguous(M) ((M)->mflags |= USE_NONCONTIGUOUS_BIT)
|
||||
|
@ -78,11 +74,7 @@ static int has_segment_link(mstate m, msegmentptr ss) {
|
|||
}
|
||||
}
|
||||
|
||||
#ifndef MORECORE_CANNOT_TRIM
|
||||
#define should_trim(M,s) ((s) > (M)->trim_check)
|
||||
#else /* MORECORE_CANNOT_TRIM */
|
||||
#define should_trim(M,s) (0)
|
||||
#endif /* MORECORE_CANNOT_TRIM */
|
||||
|
||||
/*
|
||||
TOP_FOOT_SIZE is padding at the end of a segment, including space
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue