jarin added a comment.

Regarding the callback idea, I have bad experience with callbacks because they 
break if the code is not crafted for re-entrancy and they are much harder to 
understand. That change feels out of scope for just adding a test and fixing an 
unrelated bug.

Adding the SetCacheLineSize method sounds good, but if we want to keep this 
patch making NFC (which is what I would prefer), it would have to be called at 
exactly the same places as Clear. How about Pavel's idea to rename Clear -> 
Reset, and leave the refactoring to SetCacheLineSize for later?

It appears it is really hard to reach agreement about this, so another 
alternative is I submit a bug report about the L1 <https://reviews.llvm.org/L1> 
invalidation problem and leave it to you to figure this out. In the mean time, 
we will fix the bug only in our private fork of lldb. Greg, perhaps you would 
prefer that?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77790/new/

https://reviews.llvm.org/D77790



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to