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.
This commit is contained in:
Helmut Eller 2025-11-12 13:26:02 +01:00
parent cfe464d2ed
commit 81b80cee65

View file

@ -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;