Ignore:
Timestamp:
Feb 19, 2017, 2:07:58 PM (8 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling out r212466.
https://bugs.webkit.org/show_bug.cgi?id=168577

causes crashes on AArch64 on linux, maybe it's causing crashes
on iOS too (Requested by pizlo on #webkit).

Reverted changeset:

"The collector thread should only start when the mutator
doesn't have heap access"
https://bugs.webkit.org/show_bug.cgi?id=167737
http://trac.webkit.org/changeset/212466

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/jsc.cpp

    r212535 r212616  
    3939#include "HeapProfiler.h"
    4040#include "HeapSnapshotBuilder.h"
     41#include "HeapStatistics.h"
    4142#include "InitializeThreading.h"
    4243#include "Interpreter.h"
     
    10841085static EncodedJSValue JSC_HOST_CALL functionWaitForReport(ExecState*);
    10851086static EncodedJSValue JSC_HOST_CALL functionHeapCapacity(ExecState*);
    1086 static EncodedJSValue JSC_HOST_CALL functionFlashHeapAccess(ExecState*);
    10871087
    10881088struct Script {
     
    13671367
    13681368        addFunction(vm, "heapCapacity", functionHeapCapacity, 0);
    1369         addFunction(vm, "flashHeapAccess", functionFlashHeapAccess, 0);
    13701369    }
    13711370   
     
    26502649}
    26512650
    2652 EncodedJSValue JSC_HOST_CALL functionFlashHeapAccess(ExecState* exec)
    2653 {
    2654     VM& vm = exec->vm();
    2655     auto scope = DECLARE_THROW_SCOPE(vm);
    2656    
    2657     vm.heap.releaseAccess();
    2658     if (exec->argumentCount() >= 1) {
    2659         double ms = exec->argument(0).toNumber(exec);
    2660         RETURN_IF_EXCEPTION(scope, encodedJSValue());
    2661         sleep(Seconds::fromMilliseconds(ms));
    2662     }
    2663     vm.heap.acquireAccess();
    2664     return JSValue::encode(jsUndefined());
    2665 }
    2666 
    26672651template<typename ValueType>
    26682652typename std::enable_if<!std::is_fundamental<ValueType>::value>::type addOption(VM&, JSObject*, Identifier, ValueType) { }
Note: See TracChangeset for help on using the changeset viewer.