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

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

Issue 1334683002: Oilpan: An Oilpan idle GC should follow a V8 major GC (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/bindings/core/v8/V8GCController.cpp ('k') | Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 #if ENABLE(ASSERT) 321 #if ENABLE(ASSERT)
322 bool checkThread() const { return m_thread == currentThread(); } 322 bool checkThread() const { return m_thread == currentThread(); }
323 #endif 323 #endif
324 324
325 void performIdleGC(double deadlineSeconds); 325 void performIdleGC(double deadlineSeconds);
326 void performIdleLazySweep(double deadlineSeconds); 326 void performIdleLazySweep(double deadlineSeconds);
327 327
328 void scheduleIdleGC(); 328 void scheduleIdleGC();
329 void scheduleIdleLazySweep(); 329 void scheduleIdleLazySweep();
330 void schedulePreciseGC(); 330 void schedulePreciseGC();
331 void scheduleV8FollowupGCIfNeeded(); 331 void scheduleV8FollowupGCIfNeeded(bool shouldScheduleIdleGC);
keishi 2015/09/10 12:53:39 nit: maybe enum is better https://www.chromium.org
haraken 2015/09/10 13:09:11 Done.
332 void schedulePageNavigationGCIfNeeded(float estimatedRemovalRatio); 332 void schedulePageNavigationGCIfNeeded(float estimatedRemovalRatio);
333 void schedulePageNavigationGC(); 333 void schedulePageNavigationGC();
334 void scheduleGCIfNeeded(); 334 void scheduleGCIfNeeded();
335 void setGCState(GCState); 335 void setGCState(GCState);
336 GCState gcState() const; 336 GCState gcState() const;
337 bool isInGC() const { return gcState() == GCRunning; } 337 bool isInGC() const { return gcState() == GCRunning; }
338 bool isSweepingInProgress() const 338 bool isSweepingInProgress() const
339 { 339 {
340 return gcState() == Sweeping || gcState() == SweepingAndPreciseGCSchedul ed || gcState() == SweepingAndIdleGCScheduled; 340 return gcState() == Sweeping || gcState() == SweepingAndPreciseGCSchedul ed || gcState() == SweepingAndIdleGCScheduled;
341 } 341 }
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 }; 826 };
827 827
828 template<> class ThreadStateFor<AnyThread> { 828 template<> class ThreadStateFor<AnyThread> {
829 public: 829 public:
830 static ThreadState* state() { return ThreadState::current(); } 830 static ThreadState* state() { return ThreadState::current(); }
831 }; 831 };
832 832
833 } // namespace blink 833 } // namespace blink
834 834
835 #endif // ThreadState_h 835 #endif // ThreadState_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/V8GCController.cpp ('k') | Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698