Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@richdougherty
Copy link
Member

This is a backport of #8086 to the 2.6.x branch. cc @TimMoore

Tim Moore added 2 commits December 13, 2017 12:17
Objects that are referenced only by a weak reference will be eagerly
collected on the next GC run. Using a soft reference ensures that the
referent is only collected when there is memory pressure.

This should improve the utilization of the cache and reduce the need to
repopulate it.

See discussion in https://stackoverflow.com/a/299702/29470 for example.
This variable should have been private in the first place. The class is
private[play] so it should be safe to break binary compatibility.
@marcospereira marcospereira changed the title Make InlineCache use a soft (not weak) reference [2.6.x]: Make InlineCache use a soft (not weak) reference Dec 13, 2017
@marcospereira marcospereira merged commit 63d24d9 into 2.6.x Dec 13, 2017
@mkurz mkurz deleted the inline-soft-ref-2.6.x branch December 24, 2017 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants