Index: Source/platform/heap/ThreadState.h |
diff --git a/Source/platform/heap/ThreadState.h b/Source/platform/heap/ThreadState.h |
index 7c4b7a4c474887f99aed495e2f1f1f47320651ad..c098f13abb01baaeb028f556f20bbfca355640a8 100644 |
--- a/Source/platform/heap/ThreadState.h |
+++ b/Source/platform/heap/ThreadState.h |
@@ -445,12 +445,9 @@ public: |
void onInterrupted(); |
}; |
- void addInterruptor(Interruptor*); |
+ void addInterruptor(PassOwnPtr<Interruptor>); |
void removeInterruptor(Interruptor*); |
- // Should only be called under protection of threadAttachMutex(). |
- const Vector<Interruptor*>& interruptors() const { return m_interruptors; } |
- |
void recordStackEnd(intptr_t* endOfStack) |
{ |
m_endOfStack = endOfStack; |
@@ -717,6 +714,11 @@ private: |
void clearHeapAges(); |
int heapIndexOfVectorHeapLeastRecentlyExpanded(int beginHeapIndex, int endHeapIndex); |
+ using InterruptorVector = Vector<OwnPtr<Interruptor>>; |
+ |
+ // Should only be called under protection of threadAttachMutex(). |
+ const InterruptorVector& interruptors() const { return m_interruptors; } |
+ |
friend class SafePointAwareMutexLocker; |
friend class SafePointBarrier; |
friend class SafePointScope; |
@@ -743,7 +745,7 @@ private: |
void* m_safePointScopeMarker; |
Vector<Address> m_safePointStackCopy; |
bool m_atSafePoint; |
- Vector<Interruptor*> m_interruptors; |
+ InterruptorVector m_interruptors; |
bool m_sweepForbidden; |
size_t m_noAllocationCount; |
size_t m_gcForbiddenCount; |