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

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

Issue 1178063004: Oilpan: move "forced GC" handling back to gcEpilogue(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: compile fix Created 5 years, 6 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
« 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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 } 308 }
309 309
310 static ThreadState* mainThreadState() 310 static ThreadState* mainThreadState()
311 { 311 {
312 return reinterpret_cast<ThreadState*>(s_mainThreadStateStorage); 312 return reinterpret_cast<ThreadState*>(s_mainThreadStateStorage);
313 } 313 }
314 314
315 bool isMainThread() const { return this == mainThreadState(); } 315 bool isMainThread() const { return this == mainThreadState(); }
316 void checkThread() const { ASSERT(m_thread == currentThread()); } 316 void checkThread() const { ASSERT(m_thread == currentThread()); }
317 317
318 void didV8MajorGC(bool forceGC); 318 void didV8MajorGC();
319 319
320 void performIdleGC(double deadlineSeconds); 320 void performIdleGC(double deadlineSeconds);
321 void performIdleLazySweep(double deadlineSeconds); 321 void performIdleLazySweep(double deadlineSeconds);
322 322
323 void scheduleIdleGC(); 323 void scheduleIdleGC();
324 void scheduleIdleLazySweep(); 324 void scheduleIdleLazySweep();
325 void schedulePreciseGC(); 325 void schedulePreciseGC();
326 void scheduleGCIfNeeded(); 326 void scheduleGCIfNeeded();
327 void setGCState(GCState); 327 void setGCState(GCState);
328 GCState gcState() const; 328 GCState gcState() const;
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 }; 773 };
774 774
775 template<> class ThreadStateFor<AnyThread> { 775 template<> class ThreadStateFor<AnyThread> {
776 public: 776 public:
777 static ThreadState* state() { return ThreadState::current(); } 777 static ThreadState* state() { return ThreadState::current(); }
778 }; 778 };
779 779
780 } // namespace blink 780 } // namespace blink
781 781
782 #endif // ThreadState_h 782 #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