Bug 462497. Don't reacquire a monitor in nsComponentManagerImpl::HashContractID that we already hold. r=bsmedberg
This commit is contained in:
@@ -84,6 +84,7 @@
|
||||
#include "xptinfo.h" // this after nsISupports, to pick up IID so that xpt stuff doesn't try to define it itself...
|
||||
#include "nsThreadUtils.h"
|
||||
#include "prthread.h"
|
||||
#include "private/pprthred.h"
|
||||
|
||||
#include "nsInt64.h"
|
||||
#include "nsManifestLineReader.h"
|
||||
@@ -1298,7 +1299,7 @@ nsComponentManagerImpl::HashContractID(const char *aContractID,
|
||||
if(!aContractID || !aContractIDLen)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
nsAutoMonitor mon(mMon);
|
||||
NS_ABORT_IF_FALSE(PR_InMonitor(mMon), "called from outside mMon");
|
||||
|
||||
nsContractIDTableEntry* contractIDTableEntry =
|
||||
static_cast<nsContractIDTableEntry*>
|
||||
|
||||
Reference in New Issue
Block a user