This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Fix DW_OP_call2 and DW_OP_call4 for max-cache-age 0


On Fri, 03 Sep 2010 17:35:50 +0200, Tom Tromey wrote:
> I don't get the rationale for putting it in prepare_execute_command.
> If we are flushing the cache based on memory use, then we only need to
> consider flushing it just before we read a CU.

There is currently no way of "locking" CUs.  Some processing may arbitrarily
access more and more CUs, and even the previous ones.  Processing may need
generally unlimited number of CUs, therefore it can reach the limit and flush
still referenced CU.

Therefore I find prepare_execute_command as the only safe place to flush any
CU.

(I may miss there exist some more strict rules than I am aware of.)


Thanks,
Jan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]