Bug 757375: concurrency changes, more fixes related to state transitions (p=dtomack,r=jasowill)
authorDan Schaffer <Dan.Schaffer@adobe.com>
Fri, 17 Aug 2012 06:48:58 -0700
changeset 7527 3906079735e4fb6a2f99ca5c22739cf6eabc8393
parent 7526 5f318c60be19a67cc2b49b1eef99971208c6a4b0
child 7528 cbe55af57d881b2b024ab95de3093141063dd1c2
push id4256
push userdschaffe@adobe.com
push dateMon, 20 Aug 2012 13:10:53 +0000
reviewersjasowill
bugs757375, 1098884, 1101449
Bug 757375: concurrency changes, more fixes related to state transitions (p=dtomack,r=jasowill) integrate CL 1098884 CL@1101449
core/ConcurrencyGlue.cpp
--- a/core/ConcurrencyGlue.cpp
+++ b/core/ConcurrencyGlue.cpp
@@ -476,16 +476,17 @@ namespace avmplus {
     {
         // we are going away which cannot happen if we are
         // waiting on this condition, we are releasing our
         // hold on the underlying condition, if we are the 
         // only reference, it will be destroyed, and its
         // reference to the associated mutex will also be given
         // up.
         m_state = NULL;
+        m_mutex = NULL;
     }
 
 
     void ConditionObject::State::destroy()
     {
         m_mutexState = NULL;
         mmfx_delete(this);
     }