gecko-dev/xpcom/base
Andrew McCreight 7f15cf986b Bug 1316527 - Return 0 when GetSerialNumber fails to find an existing serial number. r=froydnj
NS_LogCOMPtrAddRef and NS_LogCOMPtrRelease always pass false to
GetSerialNumber, because they pass in everything they get without
regard to whether it is being logged or not, so they don't want to
create a serial number if none exists. This causes the assertions
added in bug 1309051 to be hit. To work around this, I hoist the
assertion into the other callers of this method. Two of them already
had this check, but it was non-fatal.

This also makes the asserts not happen in release builds, as I decided
it doesn't really matter what happens if somebody tries to use it
there.

--HG--
extra : rebase_source : 5e70290492fd442b79b4d40c300a263e322f485b
2016-11-16 12:38:54 -08:00
..
AvailableMemoryTracker.cpp
AvailableMemoryTracker.h
ClearOnShutdown.cpp
ClearOnShutdown.h
CodeAddressService.h
CountingAllocatorBase.h
CycleCollectedJSContext.cpp
CycleCollectedJSContext.h
Debug.cpp
Debug.h
DebuggerOnGCRunnable.cpp
DebuggerOnGCRunnable.h
DeferredFinalize.cpp
DeferredFinalize.h
ErrorList.h Backed out changeset a8be4ebc85cf (bug 1313595) for permaorange unexpected assertion in test_referrerdirective.html, a=backout 2016-11-14 18:30:58 -08:00
ErrorNames.cpp
ErrorNames.h
HoldDropJSObjects.cpp
HoldDropJSObjects.h
JSObjectHolder.cpp
JSObjectHolder.h
LinuxUtils.cpp
LinuxUtils.h
LogModulePrefWatcher.cpp
LogModulePrefWatcher.h
Logging.cpp
Logging.h
MacHelpers.h
MacHelpers.mm Bug 1310814 - Use public NSLocale API for getting the system country code. r=spohl 2016-10-26 17:56:59 -04:00
NSPRLogModulesParser.cpp
NSPRLogModulesParser.h
OwningNonNull.h
StaticMutex.h
StaticPtr.h
SystemMemoryReporter.cpp
SystemMemoryReporter.h
moz.build
nsAgg.h
nsAlgorithm.h
nsAllocator.h
nsAutoPtr.h
nsAutoRef.h
nsCom.h
nsConsoleMessage.cpp
nsConsoleMessage.h
nsConsoleService.cpp
nsConsoleService.h
nsCrashOnException.cpp
nsCrashOnException.h
nsCycleCollector.cpp Bug 1310147 - Rename AutoAssertOnGC to AutoAssertNoGC r=sfink 2016-10-27 11:03:53 +01:00
nsCycleCollector.h
nsCycleCollectorTraceJSHelpers.cpp
nsDebugImpl.cpp
nsDebugImpl.h
nsDumpUtils.cpp
nsDumpUtils.h
nsError.h
nsErrorService.cpp
nsErrorService.h
nsGZFileWriter.cpp
nsGZFileWriter.h
nsIConsoleListener.idl
nsIConsoleMessage.idl
nsIConsoleService.idl
nsICycleCollectorListener.idl
nsIDebug2.idl
nsIErrorService.idl
nsIException.idl
nsIGZFileWriter.idl
nsIID.h
nsIInterfaceRequestor.idl
nsIMacUtils.idl
nsIMemory.idl
nsIMemoryInfoDumper.idl
nsIMemoryReporter.idl
nsIMessageLoop.idl
nsIMutable.idl
nsIProgrammingLanguage.idl
nsISecurityConsoleMessage.idl
nsISizeOf.h
nsIStatusReporter.idl
nsISupports.idl
nsISupportsBase.h
nsIUUIDGenerator.idl
nsIVersionComparator.idl
nsIWeakReference.idl
nsInterfaceRequestorAgg.cpp
nsInterfaceRequestorAgg.h
nsMacUtilsImpl.cpp
nsMacUtilsImpl.h
nsMemoryImpl.cpp
nsMemoryImpl.h
nsMemoryInfoDumper.cpp
nsMemoryInfoDumper.h
nsMemoryReporterManager.cpp
nsMemoryReporterManager.h
nsMessageLoop.cpp
nsMessageLoop.h
nsObjCExceptions.h
nsQueryObject.h
nsSecurityConsoleMessage.cpp
nsSecurityConsoleMessage.h
nsSetDllDirectory.h
nsStatusReporterManager.cpp
nsStatusReporterManager.h
nsSystemInfo.cpp
nsSystemInfo.h
nsTraceRefcnt.cpp Bug 1316527 - Return 0 when GetSerialNumber fails to find an existing serial number. r=froydnj 2016-11-16 12:38:54 -08:00
nsTraceRefcnt.h
nsUUIDGenerator.cpp
nsUUIDGenerator.h
nsVersionComparatorImpl.cpp
nsVersionComparatorImpl.h
nsWeakPtr.h
nsWindowsHelpers.h
nscore.h
nsrootidl.idl