xptinfo-finalizer-locking
author Benjamin Smedberg <benjamin@smedbergs.us>
Sat, 26 Jul 2008 22:49:39 -0400
changeset 167 a4da40849f5436e629c5732f4368c6c48189637f
parent 67 5fcbda874b5844dafeed28ff6ad7f9cb500afea8
permissions -rw-r--r--
State as of now

diff --git a/xpcom/reflect/xptinfo/src/xptiInterfaceInfo.cpp b/xpcom/reflect/xptinfo/src/xptiInterfaceInfo.cpp
--- a/xpcom/reflect/xptinfo/src/xptiInterfaceInfo.cpp
+++ b/xpcom/reflect/xptinfo/src/xptiInterfaceInfo.cpp
@@ -767,7 +767,7 @@ xptiInterfaceInfo::~xptiInterfaceInfo()
 xptiInterfaceInfo::~xptiInterfaceInfo() 
 {
     {
-        nsAutoMonitor lock(xptiInterfaceInfoManager::GetInfoMonitor());
+        // This is during GC... all other threads are paused, so no locking needed
         if(mEntry && mEntry->InterfaceInfoEquals(this))
             mEntry->LockedInterfaceInfoDeathNotification();
     }