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

ben-manes / caffeine / #5634 / 1
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: v3.dev
DEFAULT BRANCH: master
Ran 14 Jul 2026 05:25AM UTC
Files 78
Run time 2s
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

14 Jul 2026 04:49AM UTC coverage: 99.988% (+0.01%) from 99.976%
#5634.1

push

github

ben-manes
Fix the timer wheel wrap bias at Long.MIN_VALUE

advance()'s negative-to-non-negative crossing rebiases the timestamps so
the unsigned per-level tick delta is correct. The bias must be 2^63 to
map the negative range [MIN_VALUE, -1] strictly below the non-negative
range in unsigned space. Biasing by Long.MAX_VALUE (2^63-1) is one short:
previousTimeNanos == Long.MIN_VALUE maps to unsigned 2^64-1 instead of 0,
so every wheel delta is <= 0, the loop breaks at level 0, and the whole
advance is a no-op (background expiration stalls until the next advance
with a non-degenerate previous; the read path stays exact). Bias by
Long.MIN_VALUE, whose bit pattern is 2^63.

4137 of 4148 branches covered (99.73%)

8412 of 8413 relevant lines covered (99.99%)

1.0 hits per line

Source Files on job #5634.1
  • Tree
  • List 78
  • Changed 3
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 5634
  • cc56e156 on github
  • Prev Job for on v3.dev (##5631.1)
  • Next Job for on v3.dev (##5635.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc