X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/81345200c95645a1b0d2635520f96ad55dfde63f..refs/heads/master:/heap/CodeBlockSet.cpp diff --git a/heap/CodeBlockSet.cpp b/heap/CodeBlockSet.cpp index 2a818f0..9cfce4f 100644 --- a/heap/CodeBlockSet.cpp +++ b/heap/CodeBlockSet.cpp @@ -35,8 +35,7 @@ namespace JSC { static const bool verbose = false; -CodeBlockSet::CodeBlockSet(BlockAllocator& blockAllocator) - : m_currentlyExecuting(blockAllocator) +CodeBlockSet::CodeBlockSet() { } @@ -66,7 +65,7 @@ void CodeBlockSet::clearMarksForFullCollection() { for (CodeBlock* codeBlock : m_oldCodeBlocks) { codeBlock->m_mayBeExecuting = false; - codeBlock->m_visitAggregateHasBeenCalled = false; + codeBlock->m_visitAggregateHasBeenCalled.store(false, std::memory_order_relaxed); } // We promote after we clear marks on the old generation CodeBlocks because @@ -83,7 +82,7 @@ void CodeBlockSet::clearMarksForEdenCollection(const Vector& reme continue; executable->forEachCodeBlock([](CodeBlock* codeBlock) { codeBlock->m_mayBeExecuting = false; - codeBlock->m_visitAggregateHasBeenCalled = false; + codeBlock->m_visitAggregateHasBeenCalled.store(false, std::memory_order_relaxed); }); } }