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

ben-manes / caffeine / 2143
100%

Build:
DEFAULT BRANCH: master
Ran 15 Aug 2017 05:53AM UTC
Jobs 1
Files 67
Run time 3s
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
2143

push

travis-ci

ben-manes
Fix null mappings caused by JDK-8186171 (fixes #176)

When a getAll or getAllPresent is called, the duplicate keys are
discarded and the lookups performed. Previously this was done by
building a mapping with sentinel values, iterating the entries,
performing each load, and setting the value or removing accordingly.
That approach avoided garbage of a unique key set and let the hashmap
perform faster set and remove operations.

Unfortunately this was broken in JDK8 when a bucket was treeified due
to collisions and untreeified by the removals. That caused the link
chain to be rebuilt and the entries decoupled from the map. Then the
sentinel value leaked into the result set given to the user. We used
null for convenience. This was a regression from JDK7 and a bug.

The more obvious and slightly less efficient version is now implemented.
The keys are stored copied into a HashSet and the map populated only
when a value exists. This should have similar performance in practice.

https://bugs.openjdk.java.net/browse/JDK-8186171

31 of 31 new or added lines in 4 files covered. (100.0%)

5705 of 6065 relevant lines covered (94.06%)

0.94 hits per line

Coverage Regressions

Lines Coverage ∆ File
6
100.0
caffeine/src/main/java/com/github/benmanes/caffeine/cache/BoundedLocalCache.java
1
100.0
caffeine/src/main/java/com/github/benmanes/caffeine/SingleConsumerQueue.java
Jobs
ID Job ID Ran Files Coverage
2 2143.2 (GROUP=tests) 15 Aug 2017 05:53AM UTC 0
94.06
Travis Job 2143.2
Source Files on build 2143
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2143
  • 6e61ee5b on github
  • Prev Build on master (#2142)
  • Next Build on master (#2146)
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