• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ben-manes / caffeine / 1794
100%

Build:
DEFAULT BRANCH: master
Ran 03 Aug 2016 06:22AM UTC
Jobs 1
Files 65
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1794

push

travis-ci

ben-manes
Null the value field when the entry is dead (evicted)

In #103 a user broke the map contract by accidentially modifying the
key, causing lookups to not find the entry. This includes eviction,
which finds the entry on a linked list ("Node") and removes from the
hash table with the stashed key. While the node can be marked as dead,
the removal might fail in practice if racing with an explicit
invalidation.

When an weak/soft value entry is dead we already clear the reference to
reduce the GC burden. In the common case null'ing out the field would
have no benefit, because the GC would trace live objects and not need
the hint. In the above case it reduces the impact of a memory leak by
collecting the heavy user objects. The node instances would still
accumulate and the leak may take longer to fail. But since we do it for
reference caching and it could reduce the likelihood of outages, it
does seems friendlier to null the strong value field.

9 of 9 new or added lines in 1 file covered. (100.0%)

5333 of 5648 relevant lines covered (94.42%)

0.94 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
100.0
caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java
Jobs
ID Job ID Ran Files Coverage
1 1794.1 (TERM=dumb) 03 Aug 2016 06:22AM UTC 0
94.42
Travis Job 1794.1
Source Files on build 1794
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1794
  • 9e035c3e on github
  • Prev Build on master (#1793)
  • Next Build on master (#1796)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc