Commit 0f220549 authored by oliver@apple.com's avatar oliver@apple.com

fourthTier: don't GC when shutting down the VM

https://bugs.webkit.org/show_bug.cgi?id=118751

Reviewed by Mark Hahnenberg.

* heap/Heap.h:
(Heap):
* runtime/VM.cpp:
(JSC::VM::~VM):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153276 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent f13fc1d0
2013-07-16 Filip Pizlo <fpizlo@apple.com>
fourthTier: don't GC when shutting down the VM
https://bugs.webkit.org/show_bug.cgi?id=118751
Reviewed by Mark Hahnenberg.
* heap/Heap.h:
(Heap):
* runtime/VM.cpp:
(JSC::VM::~VM):
2013-07-12 Filip Pizlo <fpizlo@apple.com>
fourthTier: DFG should have an SSA form for use by FTL
......
......@@ -197,6 +197,7 @@ namespace JSC {
friend class SuperRegion;
friend class IncrementalSweeper;
friend class HeapStatistics;
friend class VM;
friend class WeakSet;
template<typename T> friend void* allocateCell(Heap&);
template<typename T> friend void* allocateCell(Heap&, size_t);
......
......@@ -264,9 +264,12 @@ VM::VM(VMType vmType, HeapType heapType)
VM::~VM()
{
// Never GC, ever again.
heap.incrementDeferralDepth();
#if ENABLE(DFG_JIT)
// Make sure concurrent compilations are done, but don't install them, since installing
// them might cause a GC. We don't want to GC right now.
// Make sure concurrent compilations are done, but don't install them, since there is
// no point to doing so.
if (worklist) {
worklist->waitUntilAllPlansForVMAreReady(*this);
worklist->removeAllReadyPlansForVM(*this);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment