Changeset 176553 in webkit for trunk/Source/JavaScriptCore/heap
- Timestamp:
- Nov 27, 2014, 4:51:32 PM (11 years ago)
- Location:
- trunk/Source/JavaScriptCore/heap
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/MarkedBlock.cpp
r171953 r176553 103 103 // otherwise we would lose information on what's currently alive. 104 104 if (sweepMode == SweepToFreeList && m_newlyAllocated) 105 m_newlyAllocated .clear();105 m_newlyAllocated = nullptr; 106 106 107 107 m_state = ((sweepMode == SweepToFreeList) ? FreeListed : Marked); … … 191 191 192 192 ASSERT(!m_newlyAllocated); 193 m_newlyAllocated = adoptPtr(new WTF::Bitmap<atomsPerBlock>());193 m_newlyAllocated = std::make_unique<WTF::Bitmap<atomsPerBlock>>(); 194 194 195 195 SetNewlyAllocatedFunctor functor(this); -
trunk/Source/JavaScriptCore/heap/MarkedBlock.h
r169284 r176553 210 210 WTF::Bitmap<atomsPerBlock, WTF::BitmapNotAtomic, uint8_t> m_rememberedSet; 211 211 #endif 212 OwnPtr<WTF::Bitmap<atomsPerBlock>> m_newlyAllocated;212 std::unique_ptr<WTF::Bitmap<atomsPerBlock>> m_newlyAllocated; 213 213 214 214 DestructorType m_destructorType; … … 401 401 { 402 402 if (m_newlyAllocated) { 403 m_newlyAllocated .clear();403 m_newlyAllocated = nullptr; 404 404 return true; 405 405 }
Note:
See TracChangeset
for help on using the changeset viewer.