mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 18:37:33 +00:00
* mps/code/global.c (ArenaStep): Fix calculation of available time.
This commit is contained in:
parent
4fa84f64e4
commit
b38d8789fe
1 changed files with 3 additions and 2 deletions
|
|
@ -789,8 +789,9 @@ Bool ArenaStep(Globals globals, double interval, double multiplier)
|
|||
trace = ArenaTrace(arena, (TraceId)0);
|
||||
} else {
|
||||
/* No traces are running: consider collecting the world. */
|
||||
if (PolicyShouldCollectWorld(arena, (double)(availableEnd - now), now,
|
||||
clocks_per_sec))
|
||||
if (PolicyShouldCollectWorld(arena,
|
||||
(double)(availableEnd - now)/clocks_per_sec,
|
||||
now, clocks_per_sec))
|
||||
{
|
||||
Res res;
|
||||
res = TraceStartCollectAll(&trace, arena, TraceStartWhyOPPORTUNISM);
|
||||
|
|
|
|||
Loading…
Reference in a new issue