Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
lgtm
Thanks for expanding our docs!
llvm/docs/NewPassManager.rst | ||
---|---|---|
327–328 | I would skip the second alternative. Leaving pointers to freed data as cache keys is unsafe at any speed. The only two solutions that work are to not use the inner analysis, or to clear the results for a function before it is deleted. Personally, I like to call this problem "the ABA problem", but Wikipedia says that has to do with concurrency, not cache keys. |
I would skip the second alternative. Leaving pointers to freed data as cache keys is unsafe at any speed. The only two solutions that work are to not use the inner analysis, or to clear the results for a function before it is deleted.
Personally, I like to call this problem "the ABA problem", but Wikipedia says that has to do with concurrency, not cache keys.