mirror of
https://github.com/urbit/shrub.git
synced 2025-01-03 01:54:43 +03:00
Improved diganostics.
This commit is contained in:
parent
f59222bba8
commit
fafc897b62
@ -380,9 +380,10 @@ u3a_reclaim(void)
|
||||
}
|
||||
old_w = u3a_open(u3R) + u3R->all.fre_w;
|
||||
|
||||
// suspected bug: infinite loop when cache is almost empty
|
||||
//
|
||||
#if 1
|
||||
fprintf(stderr, "allocate: reclaim: half of %d entries\r\n",
|
||||
u3to(u3h_root, u3R->cax.har_p)->use_w);
|
||||
|
||||
u3h_trim_to(u3R->cax.har_p, u3to(u3h_root, u3R->cax.har_p)->use_w / 2);
|
||||
#else
|
||||
/* brutal and guaranteed effective
|
||||
|
Loading…
Reference in New Issue
Block a user