This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Value reference counting
>>>>> "Thiago" == Thiago Jung Bauermann <thiago.bauermann@gmail.com> writes:
Daniel> free_all_values can have a very long interval. But it looks like
Daniel> breakpoint commands always run it, so not unbounded user behavior.
Daniel> What about breakpoint conditions? Is anything released and free'd
Daniel> during a condition check going to linger until we stop?
Thiago> I don't like the idea of having the GC being ran at unpredictably long
Thiago> intervals. Aren't we aiming at debugging big fat apps with big insane
Thiago> debugging sessions afterall?
Running free_all_values at a long interval is potentially a problem.
However, any particular problem here can (most likely) be resolved
locally, using value_mark and value_free_to_mark in the code that causes
too much allocation.
Tom