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

ben-manes / caffeine / #5091
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: v3.dev
DEFAULT BRANCH: master
Ran 26 Oct 2025 11:25PM UTC
Jobs 1
Files 78
Run time 1min
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

26 Oct 2025 10:42PM UTC coverage: 99.974% (-0.03%) from 100.0%
#5091

push

github

ben-manes
Allow users to read the maximum size without locking (fixes #1897)

Policy.Eviction#getMaximum() and weightedSize() now uses acquire
semantics to read the long fields.

Policy.Eviction#setMaximum() continues to lock because it must modify
recalculate the region sizes and adjust multiple fields. It writes to
the maximum's long field using release semantics.

Cache.cleanUp() and the internal cache calls performs its work under
the lock. It continues to read the long fields using plain semantics.
This is allowed since the monitor provides visibility since it is
written under the lock, so when it was a plain read/write we had the
lock provide the barriers. This is no different, we get to use a
stronger release store to allow for a non-lock read via acquire. Thus
there is no performance impact of the stronger memory visibility for
these important fields.

3810 of 3812 branches covered (99.95%)

4 of 6 new or added lines in 1 file covered. (66.67%)

7814 of 7816 relevant lines covered (99.97%)

1.0 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
99.91
-0.09% caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java
Jobs
ID Job ID Ran Files Coverage
1 #5091.1 26 Oct 2025 11:25PM UTC 78
99.97
Source Files on build #5091
  • Tree
  • List 78
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 2299add5 on github
  • Prev Build on v3.dev
  • Next Build on v3.dev
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