Title: [247900] trunk/Source

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (247899 => 247900)


--- trunk/Source/_javascript_Core/ChangeLog	2019-07-29 02:27:28 UTC (rev 247899)
+++ trunk/Source/_javascript_Core/ChangeLog	2019-07-29 04:31:04 UTC (rev 247900)
@@ -1,3 +1,17 @@
+2019-07-28  Commit Queue  <[email protected]>
+
+        Unreviewed, rolling out r247886.
+        https://bugs.webkit.org/show_bug.cgi?id=200214
+
+        "Causes PLT5 regression on some machines" (Requested by mlam|a
+        on #webkit).
+
+        Reverted changeset:
+
+        "Add crash diagnostics for debugging unexpected zapped cells."
+        https://bugs.webkit.org/show_bug.cgi?id=200149
+        https://trac.webkit.org/changeset/247886
+
 2019-07-27  Justin Michaud  <[email protected]>
 
         [X86] Emit BT instruction for shift + mask in B3

Modified: trunk/Source/_javascript_Core/heap/FreeList.h (247899 => 247900)


--- trunk/Source/_javascript_Core/heap/FreeList.h	2019-07-29 02:27:28 UTC (rev 247899)
+++ trunk/Source/_javascript_Core/heap/FreeList.h	2019-07-29 04:31:04 UTC (rev 247900)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016-2019 Apple Inc. All rights reserved.
+ * Copyright (C) 2016-2017 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -53,9 +53,6 @@
         return descramble(scrambledNext, secret);
     }
     
-    static ptrdiff_t offsetOfScrambledNext() { return OBJECT_OFFSETOF(FreeCell, scrambledNext); }
-
-    uint64_t preservedBitsForCrashAnalysis;
     uintptr_t scrambledNext;
 };
 

Modified: trunk/Source/_javascript_Core/heap/HeapCell.h (247899 => 247900)


--- trunk/Source/_javascript_Core/heap/HeapCell.h	2019-07-29 02:27:28 UTC (rev 247899)
+++ trunk/Source/_javascript_Core/heap/HeapCell.h	2019-07-29 04:31:04 UTC (rev 247900)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016-2019 Apple Inc. All rights reserved.
+ * Copyright (C) 2016-2018 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -47,17 +47,8 @@
     
     HeapCell() { }
     
-    // We're intentionally only zapping the bits for the structureID and leaving
-    // the rest of the cell header bits intact for crash analysis uses.
-    enum ZapReason : int8_t { Unspecified, Destruction, StopAllocating };
-    void zap(ZapReason reason)
-    {
-        uint32_t* cellWords = bitwise_cast<uint32_t*>(this);
-        cellWords[0] = 0;
-        // Leaving cellWords[1] alone for crash analysis if needed.
-        cellWords[2] = reason;
-    }
-    bool isZapped() const { return !*bitwise_cast<const uint32_t*>(this); }
+    void zap() { *reinterpret_cast_ptr<uintptr_t**>(this) = 0; }
+    bool isZapped() const { return !*reinterpret_cast_ptr<uintptr_t* const*>(this); }
 
     bool isLive();
 

Modified: trunk/Source/_javascript_Core/heap/MarkedBlock.cpp (247899 => 247900)


--- trunk/Source/_javascript_Core/heap/MarkedBlock.cpp	2019-07-29 02:27:28 UTC (rev 247899)
+++ trunk/Source/_javascript_Core/heap/MarkedBlock.cpp	2019-07-29 04:31:04 UTC (rev 247900)
@@ -161,7 +161,7 @@
             if (MarkedBlockInternal::verbose)
                 dataLog("Free cell: ", RawPointer(cell), "\n");
             if (m_attributes.destruction == NeedsDestruction)
-                cell->zap(HeapCell::StopAllocating);
+                cell->zap();
             block().clearNewlyAllocated(cell);
         });
     

Modified: trunk/Source/_javascript_Core/heap/MarkedBlock.h (247899 => 247900)


--- trunk/Source/_javascript_Core/heap/MarkedBlock.h	2019-07-29 02:27:28 UTC (rev 247899)
+++ trunk/Source/_javascript_Core/heap/MarkedBlock.h	2019-07-29 04:31:04 UTC (rev 247900)
@@ -198,10 +198,6 @@
         void didAddToDirectory(BlockDirectory*, size_t index);
         void didRemoveFromDirectory();
         
-        void* start() const { return &m_block->atoms()[0]; }
-        void* end() const { return &m_block->atoms()[m_endAtom]; }
-        bool contains(void* p) const { return start() <= p && p < end(); }
-
         void dumpState(PrintStream&);
         
     private:

Modified: trunk/Source/_javascript_Core/heap/MarkedBlockInlines.h (247899 => 247900)


--- trunk/Source/_javascript_Core/heap/MarkedBlockInlines.h	2019-07-29 02:27:28 UTC (rev 247899)
+++ trunk/Source/_javascript_Core/heap/MarkedBlockInlines.h	2019-07-29 04:31:04 UTC (rev 247900)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016-2019 Apple Inc. All rights reserved.
+ * Copyright (C) 2016-2018 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -258,7 +258,7 @@
         JSCell* jsCell = static_cast<JSCell*>(cell);
         if (!jsCell->isZapped()) {
             destroyFunc(vm, jsCell);
-            jsCell->zap(HeapCell::Destruction);
+            jsCell->zap();
         }
     };
     

Modified: trunk/Source/_javascript_Core/heap/MarkedSpace.h (247899 => 247900)


--- trunk/Source/_javascript_Core/heap/MarkedSpace.h	2019-07-29 02:27:28 UTC (rev 247899)
+++ trunk/Source/_javascript_Core/heap/MarkedSpace.h	2019-07-29 04:31:04 UTC (rev 247900)
@@ -124,7 +124,6 @@
     template<typename Functor> void forEachLiveCell(HeapIterationScope&, const Functor&);
     template<typename Functor> void forEachDeadCell(HeapIterationScope&, const Functor&);
     template<typename Functor> void forEachBlock(const Functor&);
-    template<typename Functor> void forEachSubspace(const Functor&);
 
     void shrink();
     void freeBlock(MarkedBlock::Handle*);
@@ -241,16 +240,6 @@
     }
 }
 
-template<typename Functor>
-void MarkedSpace::forEachSubspace(const Functor& functor)
-{
-    for (auto subspace : m_subspaces) {
-        if (functor(*subspace) == IterationStatus::Done)
-            return;
-    }
-}
-
-
 ALWAYS_INLINE size_t MarkedSpace::optimalSizeFor(size_t bytes)
 {
     ASSERT(bytes);

Modified: trunk/Source/_javascript_Core/heap/SlotVisitor.cpp (247899 => 247900)


--- trunk/Source/_javascript_Core/heap/SlotVisitor.cpp	2019-07-29 02:27:28 UTC (rev 247899)
+++ trunk/Source/_javascript_Core/heap/SlotVisitor.cpp	2019-07-29 04:31:04 UTC (rev 247900)
@@ -286,13 +286,8 @@
 ALWAYS_INLINE void SlotVisitor::appendToMarkStack(ContainerType& container, JSCell* cell)
 {
     ASSERT(m_heap.isMarked(cell));
-#if CPU(X86_64)
-    if (UNLIKELY(cell->isZapped()))
-        reportZappedCellAndCrash(cell);
-#else
     ASSERT(!cell->isZapped());
-#endif
-
+    
     container.noteMarked();
     
     m_visitCount++;
@@ -390,17 +385,7 @@
     default:
         // FIXME: This could be so much better.
         // https://bugs.webkit.org/show_bug.cgi?id=162462
-#if CPU(X86_64)
-        Structure* structure = cell->structure(vm());
-        if (LIKELY(structure)) {
-            const MethodTable* methodTable = &structure->classInfo()->methodTable;
-            methodTable->visitChildren(const_cast<JSCell*>(cell), *this);
-            break;
-        }
-        reportZappedCellAndCrash(const_cast<JSCell*>(cell));
-#else
         cell->methodTable(vm())->visitChildren(const_cast<JSCell*>(cell), *this);
-#endif
         break;
     }
     
@@ -819,42 +804,4 @@
     m_currentSolver->addParallelTask(task, *m_currentConstraint);
 }
 
-#if CPU(X86_64)
-NEVER_INLINE NO_RETURN_DUE_TO_CRASH NOT_TAIL_CALLED void SlotVisitor::reportZappedCellAndCrash(JSCell* cell)
-{
-    MarkedBlock::Handle* foundBlock = nullptr;
-    uint32_t* cellWords = reinterpret_cast_ptr<uint32_t*>(this);
-
-    uintptr_t cellAddress = bitwise_cast<uintptr_t>(cell);
-    uintptr_t headerWord = cellWords[1];
-    uintptr_t zapReason = cellWords[2];
-    unsigned subspaceHash = 0;
-    size_t cellSize = 0;
-
-    // FIXME: This iteration may crash because the mutator may race against us
-    // to add / remove blocks. That said, this should be rare and is not too
-    // detrimental to the purpose of this function. We will crash imminently
-    // anyway, and the most profitable crash info comes from the crash trace.
-    // If the race does not crash this iteration (which should be the common
-    // case), then we'll get additional info to debug the crash with. If the
-    // race does crash this iteration, then we still have the crash trace to
-    // work with.
-    // https://bugs.webkit.org/show_bug.cgi?id=200183
-    m_heap.objectSpace().forEachBlock([&] (MarkedBlock::Handle* block) {
-        if (block->contains(cell)) {
-            foundBlock = block;
-            return IterationStatus::Done;
-        }
-        return IterationStatus::Continue;
-    });
-
-    if (foundBlock) {
-        subspaceHash = StringHasher::computeHash(foundBlock->subspace()->name());
-        cellSize = foundBlock->cellSize();
-    }
-
-    CRASH_WITH_INFO(cellAddress, headerWord, zapReason, subspaceHash, cellSize);
-}
-#endif // CPU(X86_64)
-
 } // namespace JSC

Modified: trunk/Source/_javascript_Core/heap/SlotVisitor.h (247899 => 247900)


--- trunk/Source/_javascript_Core/heap/SlotVisitor.h	2019-07-29 02:27:28 UTC (rev 247899)
+++ trunk/Source/_javascript_Core/heap/SlotVisitor.h	2019-07-29 04:31:04 UTC (rev 247900)
@@ -225,10 +225,6 @@
     bool hasWork(const AbstractLocker&);
     bool didReachTermination(const AbstractLocker&);
 
-#if CPU(X86_64)
-    NEVER_INLINE NO_RETURN_DUE_TO_CRASH NOT_TAIL_CALLED void reportZappedCellAndCrash(JSCell*);
-#endif
-
     template<typename Func>
     IterationStatus forEachMarkStack(const Func&);
 

Modified: trunk/Source/_javascript_Core/jit/AssemblyHelpers.cpp (247899 => 247900)


--- trunk/Source/_javascript_Core/jit/AssemblyHelpers.cpp	2019-07-29 02:27:28 UTC (rev 247899)
+++ trunk/Source/_javascript_Core/jit/AssemblyHelpers.cpp	2019-07-29 04:31:04 UTC (rev 247900)
@@ -546,7 +546,7 @@
         
     // The object is half-allocated: we have what we know is a fresh object, but
     // it's still on the GC's free list.
-    loadPtr(Address(resultGPR, FreeCell::offsetOfScrambledNext()), scratchGPR);
+    loadPtr(Address(resultGPR), scratchGPR);
     storePtr(scratchGPR, Address(allocatorGPR, LocalAllocator::offsetOfFreeList() + FreeList::offsetOfScrambledHead()));
         
     done.link(this);

Modified: trunk/Source/_javascript_Core/runtime/VM.cpp (247899 => 247900)


--- trunk/Source/_javascript_Core/runtime/VM.cpp	2019-07-29 02:27:28 UTC (rev 247899)
+++ trunk/Source/_javascript_Core/runtime/VM.cpp	2019-07-29 04:31:04 UTC (rev 247900)
@@ -265,29 +265,29 @@
     , webAssemblyCodeBlockHeapCellType(std::make_unique<JSWebAssemblyCodeBlockHeapCellType>())
     , webAssemblyFunctionHeapCellType(std::make_unique<WebAssemblyFunctionHeapCellType>())
 #endif
-    , primitiveGigacageAuxiliarySpace("Primitive Gigacage Auxiliary", heap, auxiliaryHeapCellType.get(), primitiveGigacageAllocator.get()) // Hash:0x3e7cd762
-    , jsValueGigacageAuxiliarySpace("JSValue Gigacage Auxiliary", heap, auxiliaryHeapCellType.get(), jsValueGigacageAllocator.get()) // Hash:0x241e946
-    , immutableButterflyJSValueGigacageAuxiliarySpace("ImmutableButterfly Gigacage JSCellWithInteriorPointers", heap, immutableButterflyHeapCellType.get(), jsValueGigacageAllocator.get()) // Hash:0x7a945300
-    , cellSpace("JSCell", heap, cellHeapCellType.get(), fastMallocAllocator.get()) // Hash:0xadfb5a79
-    , jsValueGigacageCellSpace("JSValue Gigacage JSCell", heap, cellHeapCellType.get(), jsValueGigacageAllocator.get()) // Hash:0x2f5b102b
-    , destructibleCellSpace("Destructible JSCell", heap, destructibleCellHeapCellType.get(), fastMallocAllocator.get()) // Hash:0xbfff3d73
-    , stringSpace("JSString", heap, stringHeapCellType.get(), fastMallocAllocator.get()) // Hash:0x90cf758f
-    , destructibleObjectSpace("JSDestructibleObject", heap, destructibleObjectHeapCellType.get(), fastMallocAllocator.get()) // Hash:0x4f5ed7a9
-    , eagerlySweptDestructibleObjectSpace("Eagerly Swept JSDestructibleObject", heap, destructibleObjectHeapCellType.get(), fastMallocAllocator.get()) // Hash:0x6ebf28e2
-    , executableToCodeBlockEdgeSpace ISO_SUBSPACE_INIT(heap, cellHeapCellType.get(), ExecutableToCodeBlockEdge) // Hash:0x7b730b20
-    , functionSpace ISO_SUBSPACE_INIT(heap, cellHeapCellType.get(), JSFunction) // Hash:0x800fca72
-    , internalFunctionSpace ISO_SUBSPACE_INIT(heap, destructibleObjectHeapCellType.get(), InternalFunction) // Hash:0xf845c464
-    , nativeExecutableSpace ISO_SUBSPACE_INIT(heap, destructibleCellHeapCellType.get(), NativeExecutable) // Hash:0x67567f95
-    , propertyTableSpace ISO_SUBSPACE_INIT(heap, destructibleCellHeapCellType.get(), PropertyTable) // Hash:0xc6bc9f12
-    , structureRareDataSpace ISO_SUBSPACE_INIT(heap, destructibleCellHeapCellType.get(), StructureRareData) // Hash:0xaca4e62d
-    , structureSpace ISO_SUBSPACE_INIT(heap, destructibleCellHeapCellType.get(), Structure) // Hash:0x1f1bcdca
-    , symbolTableSpace ISO_SUBSPACE_INIT(heap, destructibleCellHeapCellType.get(), SymbolTable) // Hash:0xc5215afd
+    , primitiveGigacageAuxiliarySpace("Primitive Gigacage Auxiliary", heap, auxiliaryHeapCellType.get(), primitiveGigacageAllocator.get())
+    , jsValueGigacageAuxiliarySpace("JSValue Gigacage Auxiliary", heap, auxiliaryHeapCellType.get(), jsValueGigacageAllocator.get())
+    , immutableButterflyJSValueGigacageAuxiliarySpace("ImmutableButterfly Gigacage JSCellWithInteriorPointers", heap, immutableButterflyHeapCellType.get(), jsValueGigacageAllocator.get())
+    , cellSpace("JSCell", heap, cellHeapCellType.get(), fastMallocAllocator.get())
+    , jsValueGigacageCellSpace("JSValue Gigacage JSCell", heap, cellHeapCellType.get(), jsValueGigacageAllocator.get())
+    , destructibleCellSpace("Destructible JSCell", heap, destructibleCellHeapCellType.get(), fastMallocAllocator.get())
+    , stringSpace("JSString", heap, stringHeapCellType.get(), fastMallocAllocator.get())
+    , destructibleObjectSpace("JSDestructibleObject", heap, destructibleObjectHeapCellType.get(), fastMallocAllocator.get())
+    , eagerlySweptDestructibleObjectSpace("Eagerly Swept JSDestructibleObject", heap, destructibleObjectHeapCellType.get(), fastMallocAllocator.get())
+    , executableToCodeBlockEdgeSpace ISO_SUBSPACE_INIT(heap, cellHeapCellType.get(), ExecutableToCodeBlockEdge)
+    , functionSpace ISO_SUBSPACE_INIT(heap, cellHeapCellType.get(), JSFunction)
+    , internalFunctionSpace ISO_SUBSPACE_INIT(heap, destructibleObjectHeapCellType.get(), InternalFunction)
+    , nativeExecutableSpace ISO_SUBSPACE_INIT(heap, destructibleCellHeapCellType.get(), NativeExecutable)
+    , propertyTableSpace ISO_SUBSPACE_INIT(heap, destructibleCellHeapCellType.get(), PropertyTable)
+    , structureRareDataSpace ISO_SUBSPACE_INIT(heap, destructibleCellHeapCellType.get(), StructureRareData)
+    , structureSpace ISO_SUBSPACE_INIT(heap, destructibleCellHeapCellType.get(), Structure)
+    , symbolTableSpace ISO_SUBSPACE_INIT(heap, destructibleCellHeapCellType.get(), SymbolTable)
     , executableToCodeBlockEdgesWithConstraints(executableToCodeBlockEdgeSpace)
     , executableToCodeBlockEdgesWithFinalizers(executableToCodeBlockEdgeSpace)
-    , codeBlockSpace ISO_SUBSPACE_INIT(heap, destructibleCellHeapCellType.get(), CodeBlock) // Hash:0x77e66ec9
-    , functionExecutableSpace ISO_SUBSPACE_INIT(heap, destructibleCellHeapCellType.get(), FunctionExecutable) // Hash:0x5d158f3
-    , programExecutableSpace ISO_SUBSPACE_INIT(heap, destructibleCellHeapCellType.get(), ProgramExecutable) // Hash:0x527c77e7
-    , unlinkedFunctionExecutableSpace ISO_SUBSPACE_INIT(heap, destructibleCellHeapCellType.get(), UnlinkedFunctionExecutable) // Hash:0xf6b828d9
+    , codeBlockSpace ISO_SUBSPACE_INIT(heap, destructibleCellHeapCellType.get(), CodeBlock)
+    , functionExecutableSpace ISO_SUBSPACE_INIT(heap, destructibleCellHeapCellType.get(), FunctionExecutable)
+    , programExecutableSpace ISO_SUBSPACE_INIT(heap, destructibleCellHeapCellType.get(), ProgramExecutable)
+    , unlinkedFunctionExecutableSpace ISO_SUBSPACE_INIT(heap, destructibleCellHeapCellType.get(), UnlinkedFunctionExecutable)
     , vmType(vmType)
     , clientData(0)
     , topEntryFrame(nullptr)
@@ -1243,22 +1243,22 @@
     }
 
 
-DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(boundFunctionSpace, cellHeapCellType.get(), JSBoundFunction) // Hash:0xd7916d41
-DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(callbackFunctionSpace, destructibleObjectHeapCellType.get(), JSCallbackFunction) // Hash:0xe7648ebc
-DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(customGetterSetterFunctionSpace, cellHeapCellType.get(), JSCustomGetterSetterFunction) // Hash:0x18091000
-DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(errorInstanceSpace, destructibleObjectHeapCellType.get(), ErrorInstance) // Hash:0x3f40d4a
-DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(nativeStdFunctionSpace, cellHeapCellType.get(), JSNativeStdFunction) // Hash:0x70ed61e4
-DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(proxyRevokeSpace, destructibleObjectHeapCellType.get(), ProxyRevoke) // Hash:0xb506a939
-DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(weakMapSpace, destructibleObjectHeapCellType.get(), JSWeakMap) // Hash:0x662b12a3
-DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(weakSetSpace, destructibleObjectHeapCellType.get(), JSWeakSet) // Hash:0x4c781b30
-DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(weakObjectRefSpace, cellHeapCellType.get(), JSWeakObjectRef) // Hash:0x8ec68f1f
+DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(boundFunctionSpace, cellHeapCellType.get(), JSBoundFunction)
+DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(callbackFunctionSpace, destructibleObjectHeapCellType.get(), JSCallbackFunction)
+DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(customGetterSetterFunctionSpace, cellHeapCellType.get(), JSCustomGetterSetterFunction)
+DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(errorInstanceSpace, destructibleObjectHeapCellType.get(), ErrorInstance)
+DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(nativeStdFunctionSpace, cellHeapCellType.get(), JSNativeStdFunction)
+DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(proxyRevokeSpace, destructibleObjectHeapCellType.get(), ProxyRevoke)
+DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(weakMapSpace, destructibleObjectHeapCellType.get(), JSWeakMap)
+DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(weakSetSpace, destructibleObjectHeapCellType.get(), JSWeakSet)
+DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(weakObjectRefSpace, cellHeapCellType.get(), JSWeakObjectRef)
 #if JSC_OBJC_API_ENABLED
-DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(objCCallbackFunctionSpace, destructibleObjectHeapCellType.get(), ObjCCallbackFunction) // Hash:0x10f610b8
+DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(objCCallbackFunctionSpace, destructibleObjectHeapCellType.get(), ObjCCallbackFunction)
 #endif
 #if ENABLE(WEBASSEMBLY)
-DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(webAssemblyCodeBlockSpace, webAssemblyCodeBlockHeapCellType.get(), JSWebAssemblyCodeBlock) // Hash:0x9ad995cd
-DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(webAssemblyFunctionSpace, webAssemblyFunctionHeapCellType.get(), WebAssemblyFunction) // Hash:0x8b7c32db
-DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(webAssemblyWrapperFunctionSpace, cellHeapCellType.get(), WebAssemblyWrapperFunction) // Hash:0xd4a5ff01
+DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(webAssemblyCodeBlockSpace, webAssemblyCodeBlockHeapCellType.get(), JSWebAssemblyCodeBlock)
+DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(webAssemblyFunctionSpace, webAssemblyFunctionHeapCellType.get(), WebAssemblyFunction)
+DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW(webAssemblyWrapperFunctionSpace, cellHeapCellType.get(), WebAssemblyWrapperFunction)
 #endif
 
 #undef DYNAMIC_ISO_SUBSPACE_DEFINE_MEMBER_SLOW
@@ -1273,8 +1273,8 @@
         return &m_##name->space; \
     }
 
-DYNAMIC_SPACE_AND_SET_DEFINE_MEMBER_SLOW(evalExecutableSpace, destructibleCellHeapCellType.get(), EvalExecutable) // Hash:0x958e3e9d
-DYNAMIC_SPACE_AND_SET_DEFINE_MEMBER_SLOW(moduleProgramExecutableSpace, destructibleCellHeapCellType.get(), ModuleProgramExecutable) // Hash:0x6506fa3c
+DYNAMIC_SPACE_AND_SET_DEFINE_MEMBER_SLOW(evalExecutableSpace, destructibleCellHeapCellType.get(), EvalExecutable)
+DYNAMIC_SPACE_AND_SET_DEFINE_MEMBER_SLOW(moduleProgramExecutableSpace, destructibleCellHeapCellType.get(), ModuleProgramExecutable)
 
 #undef DYNAMIC_SPACE_AND_SET_DEFINE_MEMBER_SLOW
 

Modified: trunk/Source/_javascript_Core/tools/JSDollarVM.cpp (247899 => 247900)


--- trunk/Source/_javascript_Core/tools/JSDollarVM.cpp	2019-07-29 02:27:28 UTC (rev 247899)
+++ trunk/Source/_javascript_Core/tools/JSDollarVM.cpp	2019-07-29 04:31:04 UTC (rev 247900)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015-2019 Apple Inc. All rights reserved.
+ * Copyright (C) 2015-2018 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -1393,15 +1393,6 @@
     return JSValue::encode(jsUndefined());
 }
 
-// Dumps the hashes of all subspaces currently registered with the VM.
-// Usage: $vm.dumpSubspaceHashes()
-static EncodedJSValue JSC_HOST_CALL functionDumpSubspaceHashes(ExecState* exec)
-{
-    VM& vm = exec->vm();
-    VMInspector::dumpSubspaceHashes(&vm);
-    return JSValue::encode(jsUndefined());
-}
-
 // Gets a JSDollarVMCallFrame for a specified frame index.
 // Usage: var callFrame = $vm.callFrame(0) // frame 0 is the top frame.
 // Usage: var callFrame = $vm.callFrame() // implies frame 0 i.e. current frame.
@@ -2228,7 +2219,6 @@
 
     addFunction(vm, "gc", functionGC, 0);
     addFunction(vm, "edenGC", functionEdenGC, 0);
-    addFunction(vm, "dumpSubspaceHashes", functionDumpSubspaceHashes, 0);
 
     addFunction(vm, "callFrame", functionCallFrame, 1);
     addFunction(vm, "codeBlockFor", functionCodeBlockFor, 1);

Modified: trunk/Source/_javascript_Core/tools/VMInspector.cpp (247899 => 247900)


--- trunk/Source/_javascript_Core/tools/VMInspector.cpp	2019-07-29 02:27:28 UTC (rev 247899)
+++ trunk/Source/_javascript_Core/tools/VMInspector.cpp	2019-07-29 04:31:04 UTC (rev 247900)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2017-2019 Apple Inc. All rights reserved.
+ * Copyright (C) 2017-2018 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -626,17 +626,4 @@
 #undef INDENT
 }
 
-void VMInspector::dumpSubspaceHashes(VM* vm)
-{
-    unsigned count = 0;
-    vm->heap.objectSpace().forEachSubspace([&] (const Subspace& subspace) -> IterationStatus {
-        const char* name = subspace.name();
-        unsigned hash = StringHasher::computeHash(name);
-        void* hashAsPtr = reinterpret_cast<void*>(static_cast<uintptr_t>(hash));
-        dataLogLn("    [", count++, "] ", name, " Hash:", RawPointer(hashAsPtr));
-        return IterationStatus::Continue;
-    });
-    dataLogLn();
-}
-
 } // namespace JSC

Modified: trunk/Source/_javascript_Core/tools/VMInspector.h (247899 => 247900)


--- trunk/Source/_javascript_Core/tools/VMInspector.h	2019-07-29 02:27:28 UTC (rev 247899)
+++ trunk/Source/_javascript_Core/tools/VMInspector.h	2019-07-29 04:31:04 UTC (rev 247900)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2017-2019 Apple Inc. All rights reserved.
+ * Copyright (C) 2017-2018 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -78,7 +78,6 @@
     JS_EXPORT_PRIVATE static void dumpValue(JSValue);
     JS_EXPORT_PRIVATE static void dumpCellMemory(JSCell*);
     JS_EXPORT_PRIVATE static void dumpCellMemoryToStream(JSCell*, PrintStream&);
-    JS_EXPORT_PRIVATE static void dumpSubspaceHashes(VM*);
 
 private:
     template <typename Functor> void iterate(const Functor& functor)

Modified: trunk/Source/WebCore/ChangeLog (247899 => 247900)


--- trunk/Source/WebCore/ChangeLog	2019-07-29 02:27:28 UTC (rev 247899)
+++ trunk/Source/WebCore/ChangeLog	2019-07-29 04:31:04 UTC (rev 247900)
@@ -1,3 +1,17 @@
+2019-07-28  Commit Queue  <[email protected]>
+
+        Unreviewed, rolling out r247886.
+        https://bugs.webkit.org/show_bug.cgi?id=200214
+
+        "Causes PLT5 regression on some machines" (Requested by mlam|a
+        on #webkit).
+
+        Reverted changeset:
+
+        "Add crash diagnostics for debugging unexpected zapped cells."
+        https://bugs.webkit.org/show_bug.cgi?id=200149
+        https://trac.webkit.org/changeset/247886
+
 2019-07-28  Tim Horton  <[email protected]>
 
         Fix the release build

Modified: trunk/Source/WebCore/bindings/js/WebCoreJSClientData.cpp (247899 => 247900)


--- trunk/Source/WebCore/bindings/js/WebCoreJSClientData.cpp	2019-07-29 02:27:28 UTC (rev 247899)
+++ trunk/Source/WebCore/bindings/js/WebCoreJSClientData.cpp	2019-07-29 04:31:04 UTC (rev 247900)
@@ -43,9 +43,9 @@
 JSVMClientData::JSVMClientData(VM& vm)
     : m_builtinFunctions(vm)
     , m_builtinNames(&vm)
-    , m_runtimeMethodSpace ISO_SUBSPACE_INIT(vm.heap, vm.destructibleObjectHeapCellType.get(), RuntimeMethod) // Hash:0xf70c4a85
-    , m_outputConstraintSpace("WebCore Wrapper w/ Output Constraint", vm.heap, vm.destructibleObjectHeapCellType.get(), vm.fastMallocAllocator.get()) // Hash:0x7724c2e4
-    , m_globalObjectOutputConstraintSpace("WebCore Global Object w/ Output Constraint", vm.heap, vm.cellHeapCellType.get(), vm.fastMallocAllocator.get()) // Hash:0x522d6ec9
+    , m_runtimeMethodSpace ISO_SUBSPACE_INIT(vm.heap, vm.destructibleObjectHeapCellType.get(), RuntimeMethod)
+    , m_outputConstraintSpace("WebCore Wrapper w/ Output Constraint", vm.heap, vm.destructibleObjectHeapCellType.get(), vm.fastMallocAllocator.get())
+    , m_globalObjectOutputConstraintSpace("WebCore Global Object w/ Output Constraint", vm.heap, vm.cellHeapCellType.get(), vm.fastMallocAllocator.get())
 {
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to