Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(532)

Side by Side Diff: third_party/WebKit/Source/platform/heap/ThreadState.h

Issue 1386453003: Oilpan: Force a page navigation GC before starting a V8 GC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 void performIdleGC(double deadlineSeconds); 332 void performIdleGC(double deadlineSeconds);
333 void performIdleLazySweep(double deadlineSeconds); 333 void performIdleLazySweep(double deadlineSeconds);
334 334
335 void scheduleIdleGC(); 335 void scheduleIdleGC();
336 void scheduleIdleLazySweep(); 336 void scheduleIdleLazySweep();
337 void schedulePreciseGC(); 337 void schedulePreciseGC();
338 void scheduleV8FollowupGCIfNeeded(V8GCType); 338 void scheduleV8FollowupGCIfNeeded(V8GCType);
339 void schedulePageNavigationGCIfNeeded(float estimatedRemovalRatio); 339 void schedulePageNavigationGCIfNeeded(float estimatedRemovalRatio);
340 void schedulePageNavigationGC(); 340 void schedulePageNavigationGC();
341 void scheduleGCIfNeeded(); 341 void scheduleGCIfNeeded();
342 void willStartV8GC();
342 void setGCState(GCState); 343 void setGCState(GCState);
343 GCState gcState() const; 344 GCState gcState() const;
344 bool isInGC() const { return gcState() == GCRunning; } 345 bool isInGC() const { return gcState() == GCRunning; }
345 bool isSweepingInProgress() const 346 bool isSweepingInProgress() const
346 { 347 {
347 return gcState() == Sweeping || gcState() == SweepingAndPreciseGCSchedul ed || gcState() == SweepingAndIdleGCScheduled; 348 return gcState() == Sweeping || gcState() == SweepingAndPreciseGCSchedul ed || gcState() == SweepingAndIdleGCScheduled;
348 } 349 }
349 350
350 // A GC runs in the following sequence. 351 // A GC runs in the following sequence.
351 // 352 //
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 }; 826 };
826 827
827 template<> class ThreadStateFor<AnyThread> { 828 template<> class ThreadStateFor<AnyThread> {
828 public: 829 public:
829 static ThreadState* state() { return ThreadState::current(); } 830 static ThreadState* state() { return ThreadState::current(); }
830 }; 831 };
831 832
832 } // namespace blink 833 } // namespace blink
833 834
834 #endif // ThreadState_h 835 #endif // ThreadState_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/V8GCController.cpp ('k') | third_party/WebKit/Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698