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

Unified Diff: Source/platform/heap/ThreadState.h

Issue 1213133002: Oilpan: Reduce sizeof(Persistent) to 16 byte (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/heap/PersistentNode.cpp ('k') | Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/ThreadState.h
diff --git a/Source/platform/heap/ThreadState.h b/Source/platform/heap/ThreadState.h
index 4280ad1be9e53457a725d65cc657686e302b583c..8b4e6a59eeece98843c50fc78b89a23c175b9a79 100644
--- a/Source/platform/heap/ThreadState.h
+++ b/Source/platform/heap/ThreadState.h
@@ -52,12 +52,13 @@ namespace blink {
class BasePage;
class CallbackStack;
+class CrossThreadPersistentRegion;
struct GCInfo;
class GarbageCollectedMixinConstructorMarker;
class HeapObjectHeader;
class PageMemoryRegion;
class PageMemory;
-class PersistentAnchor;
+class PersistentRegion;
class BaseHeap;
class SafePointAwareMutexLocker;
class SafePointBarrier;
@@ -472,13 +473,11 @@ public:
BasePage* findPageFromAddress(const void* pointer) { return findPageFromAddress(reinterpret_cast<Address>(const_cast<void*>(pointer))); }
#endif
- // List of persistent roots allocated on the given thread.
- PersistentAnchor* roots() const { return m_persistents.get(); }
+ // A region of PersistentNodes allocated on the given thread.
+ PersistentRegion* persistentRegion() const { return m_persistentRegion.get(); }
- // List of global persistent roots not owned by any particular thread.
- // globalRootsMutex must be acquired before any modifications.
- static PersistentAnchor& globalRoots();
- static Mutex& globalRootsMutex();
+ // A region of PersistentNodes not owned by any particular thread.
+ static CrossThreadPersistentRegion& crossThreadPersistentRegion();
// Visit local thread stack and trace all pointers conservatively.
void visitStack(Visitor*);
@@ -733,7 +732,7 @@ private:
static uint8_t s_mainThreadStateStorage[];
ThreadIdentifier m_thread;
- OwnPtr<PersistentAnchor> m_persistents;
+ OwnPtr<PersistentRegion> m_persistentRegion;
StackState m_stackState;
intptr_t* m_startOfStack;
intptr_t* m_endOfStack;
« no previous file with comments | « Source/platform/heap/PersistentNode.cpp ('k') | Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698