summaryrefslogtreecommitdiff
path: root/libc/malloc_debug/malloc_debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/malloc_debug/malloc_debug.h')
-rw-r--r--libc/malloc_debug/malloc_debug.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/malloc_debug/malloc_debug.h b/libc/malloc_debug/malloc_debug.h
index 347fae236..4a1e8dad1 100644
--- a/libc/malloc_debug/malloc_debug.h
+++ b/libc/malloc_debug/malloc_debug.h
@@ -54,7 +54,8 @@ struct Header {
size_t size;
size_t usable_size;
size_t real_size() const { return size & ~(1U << 31); }
- void set_zygote() { size |= 1U << 31; }
+ void set_zygote_child_alloc() { size |= 1U << 31; }
+ bool zygote_child_alloc() const { return size & (1U << 31); }
static size_t max_size() { return (1U << 31) - 1; }
} __attribute__((packed));