Unreviewed, fix incorrect assertion
authorysuzuki@apple.com <ysuzuki@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Oct 2019 03:48:16 +0000 (03:48 +0000)
committerysuzuki@apple.com <ysuzuki@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 2 Oct 2019 03:48:16 +0000 (03:48 +0000)
https://bugs.webkit.org/show_bug.cgi?id=202391

* runtime/JSLock.cpp:
(JSC::JSLock::DropAllLocks::~DropAllLocks):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@250594 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/JSLock.cpp

index fc30a03..b0b10ff 100644 (file)
@@ -1,3 +1,11 @@
+2019-10-01  Yusuke Suzuki  <ysuzuki@apple.com>
+
+        Unreviewed, fix incorrect assertion
+        https://bugs.webkit.org/show_bug.cgi?id=202391
+
+        * runtime/JSLock.cpp:
+        (JSC::JSLock::DropAllLocks::~DropAllLocks):
+
 2019-10-01  Saam Barati  <sbarati@apple.com>
 
         ObjectAllocationSinkingPhase shouldn't insert hints for allocations which are no longer valid
index ad4d0d1..9b8e945 100644 (file)
@@ -310,7 +310,7 @@ JSLock::DropAllLocks::~DropAllLocks()
         return;
     m_vm->apiLock().grabAllLocks(this, m_droppedLockCount);
     VM* previousVMInTLS = VM::exchange(m_vm.get());
-    ASSERT_UNUSED(previousVMInTLS, previousVMInTLS);
+    ASSERT_UNUSED(previousVMInTLS, !previousVMInTLS);
 }
 
 } // namespace JSC