File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
compiler-rt/lib/scudo/standalone Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1403,12 +1403,11 @@ template <typename Config> class SizeClassAllocator64 {
1403
1403
if (RegionPushedBytesDelta < Region->ReleaseInfo .TryReleaseThreshold / 2 )
1404
1404
return false ;
1405
1405
1406
- const u64 IntervalNs =
1407
- static_cast <u64 >(atomic_load_relaxed (&ReleaseToOsIntervalMs)) *
1408
- 1000000 ;
1409
- if (IntervalNs < 0 )
1406
+ const s64 IntervalMs = atomic_load_relaxed (&ReleaseToOsIntervalMs);
1407
+ if (IntervalMs < 0 )
1410
1408
return false ;
1411
1409
1410
+ const u64 IntervalNs = static_cast <u64 >(IntervalMs) * 1000000 ;
1412
1411
const u64 CurTimeNs = getMonotonicTimeFast ();
1413
1412
const u64 DiffSinceLastReleaseNs =
1414
1413
CurTimeNs - Region->ReleaseInfo .LastReleaseAtNs ;
You can’t perform that action at this time.
0 commit comments