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 {
14031403 if (RegionPushedBytesDelta < Region->ReleaseInfo .TryReleaseThreshold / 2 )
14041404 return false ;
14051405
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 )
14101408 return false ;
14111409
1410+ const u64 IntervalNs = static_cast <u64 >(IntervalMs) * 1000000 ;
14121411 const u64 CurTimeNs = getMonotonicTimeFast ();
14131412 const u64 DiffSinceLastReleaseNs =
14141413 CurTimeNs - Region->ReleaseInfo .LastReleaseAtNs ;
You can’t perform that action at this time.
0 commit comments