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

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

Issue 1097443004: Oilpan: rename GCState and GCReason values to reflect function only. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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/platform/heap/HeapTest.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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 enum GCType { 179 enum GCType {
180 GCWithSweep, // Sweeping is completed in Heap::collectGarbage(). 180 GCWithSweep, // Sweeping is completed in Heap::collectGarbage().
181 GCWithoutSweep, // Lazy sweeping is scheduled. 181 GCWithoutSweep, // Lazy sweeping is scheduled.
182 }; 182 };
183 183
184 // See setGCState() for possible state transitions. 184 // See setGCState() for possible state transitions.
185 enum GCState { 185 enum GCState {
186 NoGCScheduled, 186 NoGCScheduled,
187 IdleGCScheduled, 187 IdleGCScheduled,
188 PreciseGCScheduled, 188 PreciseGCScheduled,
189 GCScheduledForTesting, 189 FullGCScheduled,
190 StoppingOtherThreads, 190 StoppingOtherThreads,
191 GCRunning, 191 GCRunning,
192 EagerSweepScheduled, 192 EagerSweepScheduled,
193 LazySweepScheduled, 193 LazySweepScheduled,
194 Sweeping, 194 Sweeping,
195 SweepingAndIdleGCScheduled, 195 SweepingAndIdleGCScheduled,
196 SweepingAndPreciseGCScheduled, 196 SweepingAndPreciseGCScheduled,
197 }; 197 };
198 198
199 // The NoAllocationScope class is used in debug mode to catch unwanted 199 // The NoAllocationScope class is used in debug mode to catch unwanted
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 }; 736 };
737 737
738 template<> class ThreadStateFor<AnyThread> { 738 template<> class ThreadStateFor<AnyThread> {
739 public: 739 public:
740 static ThreadState* state() { return ThreadState::current(); } 740 static ThreadState* state() { return ThreadState::current(); }
741 }; 741 };
742 742
743 } // namespace blink 743 } // namespace blink
744 744
745 #endif // ThreadState_h 745 #endif // ThreadState_h
OLDNEW
« no previous file with comments | « Source/platform/heap/HeapTest.cpp ('k') | Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698