PCH versus --enable-mapped-location
Per Bothner
per@bothner.com
Thu Mar 31 23:51:00 GMT 2005
Daniel Jacobowitz wrote:
> That's exactly what Geoff said. There are two relevant properties of
> GCed memory here:
> - Anything in GCed memory will be saved to the PCH
> - Anything in GCed memory will be overwritten by loading the PCH.
So the corrollary: After a restore any pointers from non-gc'd memory to
gc'd memory will be a dangling pointer, if we count static variables
marked with GTY as "gc'd memory" in this context.
Right now, as far as I can tell, the filenames in the line_table are
allocated from non-gc'd memory. This complicates using gc.
--
--Per Bothner
per@bothner.com http://per.bothner.com/
More information about the Gcc
mailing list