From 81b80cee65b4e40faa6e2b711db04f2a95962eaa Mon Sep 17 00:00:00 2001 From: Helmut Eller Date: Wed, 12 Nov 2025 13:26:02 +0100 Subject: [PATCH] Set dump_public.start to some place outside of the GC heap The idea is to reduce the probability for stray pointers on the stack. pdumper_object_p uses dump_public.start and pdumper_object_p is called quite frequently, e.g. by xfree. * src/pdumper.c (pdumper_load): Set dump_public.start to ~0. --- src/pdumper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pdumper.c b/src/pdumper.c index 9f80671f7ea..a55135f99dc 100644 --- a/src/pdumper.c +++ b/src/pdumper.c @@ -6258,7 +6258,7 @@ pdumper_load (const char *dump_filename, char *argv0) #ifdef HAVE_MPS /* From now on, pdumper_object_p returns false. */ - dump_public.end = dump_public.start; + dump_public.end = dump_public.start = ~0; #endif initialized = true;