diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-10-08 13:11:42 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-10-08 13:11:42 +0200 |
| commit | 85fc57faa32625f6b8294f0081d2af2e821750d9 (patch) | |
| tree | 9606bf98062591622ccb9b26c511fd25a6f7fbdb /src/custommem.c | |
| parent | c8e10a004bbca5dcb653dd0a30833cded45bc612 (diff) | |
| download | box64-85fc57faa32625f6b8294f0081d2af2e821750d9.tar.gz box64-85fc57faa32625f6b8294f0081d2af2e821750d9.zip | |
Improve debugging trace of rb_tree
Diffstat (limited to 'src/custommem.c')
| -rw-r--r-- | src/custommem.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/custommem.c b/src/custommem.c index f0b1f72d..f7ddf6d9 100644 --- a/src/custommem.c +++ b/src/custommem.c @@ -1924,12 +1924,12 @@ void init_custommem_helper(box64context_t* ctx) if(inited) // already initialized return; inited = 1; - blockstree = init_rbtree(); + blockstree = init_rbtree("blockstree"); // if there is some blocks already if(n_blocks) for(int i=0; i<n_blocks; ++i) rb_set(blockstree, (uintptr_t)p_blocks[i].block, (uintptr_t)p_blocks[i].block+p_blocks[i].size, i); - memprot = init_rbtree(); + memprot = init_rbtree("memprot"); sigfillset(&critical_prot); init_mutexes(); #ifdef DYNAREC @@ -1954,9 +1954,9 @@ void init_custommem_helper(box64context_t* ctx) #endif pthread_atfork(NULL, NULL, atfork_child_custommem); // init mapallmem list - mapallmem = init_rbtree(); + mapallmem = init_rbtree("mapallmem"); // init mmapmem list - mmapmem = init_rbtree(); + mmapmem = init_rbtree("mapmem"); // Load current MMap loadProtectionFromMap(); reserveHighMem(); |