mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-10-06 22:47:20 +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
6
third_party/dlmalloc/locks.inc
vendored
6
third_party/dlmalloc/locks.inc
vendored
|
@ -125,12 +125,6 @@ static int malloc_unlk(MLOCK_T *lk) {
|
|||
#define INITIAL_LOCK(lk) malloc_inlk(lk)
|
||||
#define REFRESH_LOCK(lk) malloc_wipe(lk)
|
||||
#define DESTROY_LOCK(lk) malloc_kilk(lk)
|
||||
#define INITIAL_MALLOC_GLOBAL_LOCK() INITIAL_LOCK(&malloc_global_mutex);
|
||||
#define REFRESH_MALLOC_GLOBAL_LOCK() REFRESH_LOCK(&malloc_global_mutex);
|
||||
#define ACQUIRE_MALLOC_GLOBAL_LOCK() ACQUIRE_LOCK(&malloc_global_mutex);
|
||||
#define RELEASE_MALLOC_GLOBAL_LOCK() RELEASE_LOCK(&malloc_global_mutex);
|
||||
|
||||
static MLOCK_T malloc_global_mutex;
|
||||
|
||||
#define USE_LOCK_BIT (2U)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue