Roll back [the change that made LocalCache
avoid synchronized
](https://github.com/google/guava/commit/1512730820a99e329a475b7143b7295775ef26ba).
#6972
+14
−48
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Roll back the change that made
LocalCache
avoidsynchronized
.The
LocalCache
change led to false reports of recursion during refresh.This CL keeps the new tests from the
LocalCache
change, which already would have passed before the CL. Ideally we would additionally include tests that demonstrate the refresh problem, but we'll need to see if the contributor can sign a CLA.This rollback un-fixes #6845. Users of
common.cache
and virtual threads will likely have to wait untilsynchronized
no longer pins threads. (And at that point, if not earlier, they should migrate to Caffeine :))RELNOTES=
cache
: Fixed a bug that could cause false "recursive load" reports during refresh.