summaryrefslogtreecommitdiff
path: root/mallocx.c
diff options
context:
space:
mode:
Diffstat (limited to 'mallocx.c')
-rw-r--r--mallocx.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mallocx.c b/mallocx.c
index 8774a3e1..6888609b 100644
--- a/mallocx.c
+++ b/mallocx.c
@@ -323,6 +323,12 @@ GC_API void GC_CALL GC_generic_malloc_many(size_t lb, int k, void **result)
if (EXPECT(0 != op, TRUE))
obj_link(op) = 0;
*result = op;
+# ifdef MANUAL_VDB
+ if (GC_is_heap_ptr(result)) {
+ GC_dirty(result);
+ REACHABLE_AFTER_DIRTY(op);
+ }
+# endif
return;
}
GC_ASSERT(k < MAXOBJKINDS);