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

ben-manes / caffeine / #2554
100%

Build:
DEFAULT BRANCH: master
Ran 14 Feb 2021 11:43PM UTC
Jobs 1
Files 77
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
#2554

push

other

ben-manes
Fix hill climber adjustment of the protected region

The cache's size is capped by a threshold and honored, but where it
thought to have allocated space was incorrect. The window, probation,
and protected regions shuffle entries between them. The sizes of these
regions changes over time as the cache makes adjustments to optimize
the hit rate. This is done by sampling and using hill climbing to
favor LRU or MRU/LFU based on the workload's characteristics.

Two small bugs that had no visible impact were discovered when
improving the internal state checks.
a) On update, the protected region current size was set as its max
   + the weight difference.
b) When climbing, the protected region's current size was increased
   but the entry was moved from the window to the probation region.

6240 of 6741 relevant lines covered (92.57%)

0.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #2554.1 14 Feb 2021 11:43PM UTC 0
92.57
Source Files on build #2554
Detailed source file information is not available for this build.
  • Back to Repo
  • 57704083 on github
  • Prev Build on master
  • Next Build on master
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