| Index: third_party/WebKit/Source/platform/heap/ThreadState.cpp
|
| diff --git a/third_party/WebKit/Source/platform/heap/ThreadState.cpp b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
|
| index 75bbf58459e9967f9e40fa858b6447677f0887f7..9ad69b6a76d7143d461e7cd40a8339f4c8375f84 100644
|
| --- a/third_party/WebKit/Source/platform/heap/ThreadState.cpp
|
| +++ b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
|
| @@ -751,7 +751,7 @@ void ThreadState::performIdleGC(double deadlineSeconds)
|
| if (gcState() != IdleGCScheduled)
|
| return;
|
|
|
| - double idleDeltaInSeconds = deadlineSeconds - Platform::current()->monotonicallyIncreasingTime();
|
| + double idleDeltaInSeconds = deadlineSeconds - Platform::current()->monotonicallyIncreasingTimeSeconds();
|
| TRACE_EVENT2("blink_gc", "ThreadState::performIdleGC", "idleDeltaInSeconds", idleDeltaInSeconds, "estimatedMarkingTime", Heap::estimatedMarkingTime());
|
| if (idleDeltaInSeconds <= Heap::estimatedMarkingTime() && !Platform::current()->currentThread()->scheduler()->canExceedIdleDeadlineIfRequired()) {
|
| // If marking is estimated to take longer than the deadline and we can't
|
| @@ -778,7 +778,7 @@ void ThreadState::performIdleLazySweep(double deadlineSeconds)
|
| if (sweepForbidden())
|
| return;
|
|
|
| - TRACE_EVENT1("blink_gc", "ThreadState::performIdleLazySweep", "idleDeltaInSeconds", deadlineSeconds - Platform::current()->monotonicallyIncreasingTime());
|
| + TRACE_EVENT1("blink_gc", "ThreadState::performIdleLazySweep", "idleDeltaInSeconds", deadlineSeconds - Platform::current()->monotonicallyIncreasingTimeSeconds());
|
|
|
| bool sweepCompleted = true;
|
| SweepForbiddenScope scope(this);
|
| @@ -791,7 +791,7 @@ void ThreadState::performIdleLazySweep(double deadlineSeconds)
|
| // lazySweepWithDeadline() won't check the deadline until it sweeps
|
| // 10 pages. So we give a small slack for safety.
|
| double slack = 0.001;
|
| - double remainingBudget = deadlineSeconds - slack - Platform::current()->monotonicallyIncreasingTime();
|
| + double remainingBudget = deadlineSeconds - slack - Platform::current()->monotonicallyIncreasingTimeSeconds();
|
| if (remainingBudget <= 0 || !m_heaps[i]->lazySweepWithDeadline(deadlineSeconds)) {
|
| // We couldn't finish the sweeping within the deadline.
|
| // We request another idle task for the remaining sweeping.
|
|
|