gecko-dev/xpcom/base
Mike Hommey 404ef7af3e Bug 1407838 - Remove the remains of NS_Alloc/NS_Realloc/NS_Free. r=njn
Bug 1134923 removed the use of those functions in gecko, and left some
for the XPCOM standalone glue. The XPCOM standalone glue was severely
stripped down in bug 1306327, with the effect of removing the
implementation for those functions.

The remains in nsXPCOM.h are:
XPCOM_API(void*) NS_Alloc(size_t aSize);
XPCOM_API(void*) NS_Realloc(void* aPtr, size_t aSize);
XPCOM_API(void) NS_Free(void* aPtr);

With no implementation left, the first arm is never actually used, and
the second arm means every remaining use of those functions in the tree
is a macro expansion to one of moz_xmalloc, moz_xrealloc or free.

--HG--
extra : rebase_source : fd1669abc5a25d8edbd5c3a8522e22a5c3f558e2
2017-10-12 11:08:44 +09:00
..
AutoRestore.h Bug 1332631 part B - file moves from xpcom/glue to xpcom/base, r=froydnj 2017-01-23 09:24:01 -05:00
AvailableMemoryTracker.cpp Bug 1398033 - Free dirty pages on memory pressure. r=njn 2017-09-08 14:50:42 +09:00
AvailableMemoryTracker.h
ClearOnShutdown.cpp Bug 1237794: Extend ClearOnShutdown() to allow specifying the shutdown phase r=froyd 2016-01-15 13:12:07 -05:00
ClearOnShutdown.h Bug 1237794: Extend ClearOnShutdown() to allow specifying the shutdown phase r=froyd 2016-01-15 13:12:07 -05:00
CodeAddressService.h
CountingAllocatorBase.h Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm. 2016-08-24 15:23:45 +10:00
CycleCollectedJSContext.cpp Bug 1406922 - Make CycleCollectedJSContext to handle microtasks and make MutationObserver to use them, r=baku,bevis 2017-10-11 15:31:38 +03:00
CycleCollectedJSContext.h Bug 1406922 - Make CycleCollectedJSContext to handle microtasks and make MutationObserver to use them, r=baku,bevis 2017-10-11 15:31:38 +03:00
CycleCollectedJSRuntime.cpp Bug 1403868 (part 4) - Reduce tools/profiler/public/*.h to almost nothing in non-MOZ_GECKO_PROFILER builds. r=mstange. 2017-10-04 09:11:18 +11:00
CycleCollectedJSRuntime.h Bug 1378717 - Store JS holders in a vector for faster iteration r=smaug 2017-07-11 16:52:01 +01:00
Debug.cpp
Debug.h
DebuggerOnGCRunnable.cpp Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm 2017-07-26 16:13:35 +08:00
DebuggerOnGCRunnable.h Bug 1339289 - Give names to a lot of common runnables (r=ehsan) 2017-02-15 12:30:01 -08:00
DeferredFinalize.cpp Bug 1359245 - Remove references to context from the cycle collector (r=mccr8) 2017-04-27 15:34:46 -07:00
DeferredFinalize.h
EnumeratedArrayCycleCollection.h Bug 1332631 part B - file moves from xpcom/glue to xpcom/base, r=froydnj 2017-01-23 09:24:01 -05:00
ErrorList.py Bug 1354989 - Avoid pivoting via UTF-16 when loading CSS in the Stylo mode. r=jdm,SimonSapin 2017-08-29 16:01:42 +03:00
ErrorNames.cpp Bug 1320179 - Part 1: Move nsresult value calculation into a python script, r=froydnj 2017-04-06 18:36:22 -04:00
ErrorNames.h Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj 2017-08-16 16:48:52 -07:00
HoldDropJSObjects.cpp Bug 1359245 - Remove references to context from the cycle collector (r=mccr8) 2017-04-27 15:34:46 -07:00
HoldDropJSObjects.h
IntentionalCrash.h Bug 1332631 part B - file moves from xpcom/glue to xpcom/base, r=froydnj 2017-01-23 09:24:01 -05:00
JSObjectHolder.cpp
JSObjectHolder.h Bug 1350958 - Finish labeling ProxyReleaseEvent, r=billm 2017-07-14 08:49:22 +02:00
LinuxUtils.cpp
LinuxUtils.h
Logging.cpp Bug 1386918 - out-of-line LazyLogModule::operator LogModule*(); r=erahm 2017-08-18 12:32:05 -04:00
Logging.h Bug 1386918 - out-of-line LazyLogModule::operator LogModule*(); r=erahm 2017-08-18 12:32:05 -04:00
LogModulePrefWatcher.cpp Bug 870698 - Part 2: Replace Append("") with AppendLiteral(""). r=erahm 2017-09-03 22:14:11 -07:00
LogModulePrefWatcher.h Bug 1233881 - Support dynamically setting log levels at runtime via prefs. r=froydnj 2015-12-22 15:09:41 -08:00
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
MemoryReportingProcess.h Bug 1378712 - Remove all trailing whitespaces r=Ehsan 2017-07-06 14:00:35 +02:00
moz.build Bug 1405821 - Move microtask handling to CycleCollectedJSContext, r=baku 2017-10-05 18:34:12 +03:00
nsAgg.h Bug 1390692 - Remove the unnecessary second QI entry for nsCycleCollectionISupports. r=peterv 2017-08-22 12:51:10 -07:00
nsAlgorithm.h
nsAutoPtr.h Bug 1296189 - Replace NS_RUNTIMEABORT("some string literal message") with MOZ_CRASH(). r=froydnj 2016-12-02 13:46:53 -08:00
nsAutoRef.h
nsClassInfoImpl.cpp Bug 1332631 part B - file moves from xpcom/glue to xpcom/base, r=froydnj 2017-01-23 09:24:01 -05:00
nsCom.h
nsCOMPtr.cpp Bug 1390568 - manually de-virtualize do_QueryReferent; r=ehsan 2017-08-24 20:04:31 -04:00
nsCOMPtr.h Bug 1390568 - manually de-virtualize do_QueryReferent; r=ehsan 2017-08-24 20:04:31 -04:00
nsConsoleMessage.cpp
nsConsoleMessage.h
nsConsoleService.cpp Bug 1378930 - Part 2: Remove the aName parameter from SchedulerGroup/DocGroup/DispatcherTrait. r=billm 2017-07-26 16:13:35 +08:00
nsConsoleService.h Bug 1332631 part B - file moves from xpcom/glue to xpcom/base, r=froydnj 2017-01-23 09:24:01 -05:00
nscore.h Bug 1366511: Part 3 - Add mozilla::ToResult() to convert other result types to equivalent Result. r=nbp,ehsan 2017-08-29 21:28:31 -07:00
nsCrashOnException.cpp
nsCrashOnException.h
nsCRTGlue.cpp Bug 1407838 - Remove the remains of NS_Alloc/NS_Realloc/NS_Free. r=njn 2017-10-12 11:08:44 +09:00
nsCRTGlue.h Bug 1407838 - Remove the remains of NS_Alloc/NS_Realloc/NS_Free. r=njn 2017-10-12 11:08:44 +09:00
nsCycleCollectionNoteChild.h Bug 1332631 part B - file moves from xpcom/glue to xpcom/base, r=froydnj 2017-01-23 09:24:01 -05:00
nsCycleCollectionNoteRootCallback.h Bug 1385474 - Avoid QIing for NoteXPCOMRoot. r=smaug 2017-07-28 16:11:03 -07:00
nsCycleCollectionParticipant.cpp Bug 1332631 part B - file moves from xpcom/glue to xpcom/base, r=froydnj 2017-01-23 09:24:01 -05:00
nsCycleCollectionParticipant.h Bug 1402499 - Add NS_IMPL_ISUPPORTS_CYCLE_COLLECTION_INHERITED_0 r=bz 2017-09-28 23:21:09 -07:00
nsCycleCollectionTraversalCallback.h Bug 1332631 part B - file moves from xpcom/glue to xpcom/base, r=froydnj 2017-01-23 09:24:01 -05:00
nsCycleCollector.cpp Bug 1277260, part 2 - Add and use method to annotate CC crashes with a class name. r=rweiss+418169,smaug 2017-09-15 13:00:17 -07:00
nsCycleCollector.h Bug 1376614 - Pass budget to forgetSkippable and return early when budget has been used, r=mccr8 2017-06-30 13:44:59 +03:00
nsCycleCollectorTraceJSHelpers.cpp Bug 1326507, trace after traverse, r=mccr8 2017-01-03 21:46:49 +02:00
nsDebug.h Bug 1334279 - mark vsprintf-likes with MOZ_FORMAT_PRINTF; r=froydnj 2017-05-04 12:10:19 -06:00
nsDebugImpl.cpp Bug 1393710 - Add thread name into NS_DebugBreak for better debugging. r=froydnj 2017-08-30 11:13:50 +08:00
nsDebugImpl.h
nsDumpUtils.cpp Bug 1384835 (part 1, attempt 2) - Use nsA[C]String references instead of pointers for outparams of Get*String() pref functions. r=froydnj. 2017-07-31 10:52:51 +10:00
nsDumpUtils.h Bug 1372405 - Provide names for all runnables in the tree (r=froydnj) 2017-06-26 14:19:58 -07:00
nsError.h Bug 1320179 - Part 1: Move nsresult value calculation into a python script, r=froydnj 2017-04-06 18:36:22 -04:00
nsErrorService.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsErrorService.h
nsGZFileWriter.cpp Bug 1296164 (part 2) - Use [must_use] on nsIFile.open{NSPR,ANSI}FileDesc(). r=froydnj. 2016-08-18 15:27:16 +10:00
nsGZFileWriter.h Bug 1295825 (part 3) - Use [must_use] and MOZ_MUST_USE in nsIGZFileWriter.idl. r=froydnj. 2016-08-17 17:09:45 +10:00
nsIClassInfoImpl.h Bug 1369622 - Restore static asserts for lack of arguments on some macros. r=froydnj 2017-06-02 15:07:58 +09:00
nsIConsoleListener.idl
nsIConsoleMessage.idl
nsIConsoleService.idl
nsICycleCollectorListener.idl
nsID.cpp Bug 1407838 - Remove the remains of NS_Alloc/NS_Realloc/NS_Free. r=njn 2017-10-12 11:08:44 +09:00
nsID.h Bug 1332631 part B - file moves from xpcom/glue to xpcom/base, r=froydnj 2017-01-23 09:24:01 -05:00
nsIDebug2.idl bug 1300152 - Add nsIDebug2::rustPanic to allow triggering Rust panic for testing. r=froydnj 2017-03-31 12:08:57 -04:00
nsIErrorService.idl
nsIException.idl Bug 1149830 - Remove nsIStackFrame::language. r=bz,mccr8 2017-08-03 15:50:07 +09:00
nsIGZFileWriter.idl Bug 1295825 (part 3) - Use [must_use] and MOZ_MUST_USE in nsIGZFileWriter.idl. r=froydnj. 2016-08-17 17:09:45 +10:00
nsIID.h
nsIInterfaceRequestor.idl
nsIInterfaceRequestorUtils.cpp Bug 1332631 part B - file moves from xpcom/glue to xpcom/base, r=froydnj 2017-01-23 09:24:01 -05:00
nsIInterfaceRequestorUtils.h Bug 1332631 part B - file moves from xpcom/glue to xpcom/base, r=froydnj 2017-01-23 09:24:01 -05:00
nsILoadURIDelegate.idl Bug 1396065 - [1.3] Add nsILoadURIDelegate to handle load delegation to the window (GeckoView). r=smaug,snorp 2017-09-05 19:08:04 +02:00
nsIMacUtils.idl
nsIMemory.idl Bug 1253142 - Remove the long-deprecated nsIMemory.isLowMemory function. r=froydnj. 2016-03-06 21:07:51 +11:00
nsIMemoryInfoDumper.idl
nsIMemoryReporter.idl Bug 1401100 - Remove nsIMemoryReporterCallback. r=erahm. 2017-09-22 08:09:29 +10:00
nsIMessageLoop.idl Bug 1268160: Assert that PostIdleTask is only used on the main thread. r=jld 2016-05-12 15:15:43 -07:00
nsIMutable.idl
nsINIParser.cpp Bug 1363482: Part 4 - Preload INI files off-thread during startup. r=erahm 2017-08-31 17:02:10 -07:00
nsINIParser.h Bug 1363482: Part 4 - Preload INI files off-thread during startup. r=erahm 2017-08-31 17:02:10 -07:00
nsInterfaceRequestorAgg.cpp Bug 1372453 - Part 2: Name the caller of ProxyReleaseEvent. r=billm 2017-06-14 09:27:17 +08:00
nsInterfaceRequestorAgg.h
nsISecurityConsoleMessage.idl
nsISizeOf.h
nsIStatusReporter.idl
nsISupports.idl
nsISupportsBase.h
nsISupportsImpl.cpp Bug 1399308 - Include nsThreadUtils.h in nsISupportsImpl.cpp. r=froydnj 2017-09-13 13:45:03 +12:00
nsISupportsImpl.h Bug 1397052 - Don't update |result| after the acquire fence in nsThreadSafeRefCnt::operator--. r=froydnj 2017-09-06 21:55:12 -07:00
nsISupportsUtils.h Bug 1332631 part B - file moves from xpcom/glue to xpcom/base, r=froydnj 2017-01-23 09:24:01 -05:00
nsIUUIDGenerator.idl
nsIVersionComparator.idl
nsIWeakReference.idl Bug 1393592 - manually de-virtualize nsIWeakReference::QueryReferent; r=ehsan 2017-08-25 13:48:29 -04:00
nsIWeakReferenceUtils.h Bug 1393885 - provide a faster path for do_GetWeakReference; r=erahm 2017-09-05 15:39:40 -04:00
nsMacUtilsImpl.cpp
nsMacUtilsImpl.h
nsMemory.cpp Bug 1407838 - Remove the remains of NS_Alloc/NS_Realloc/NS_Free. r=njn 2017-10-12 11:08:44 +09:00
nsMemory.h Bug 1407838 - Remove the remains of NS_Alloc/NS_Realloc/NS_Free. r=njn 2017-10-12 11:08:44 +09:00
nsMemoryImpl.cpp Bug 1360321 - 6. Add AArch64 support in xpcom; r=froydnj 2017-05-17 13:06:23 -04:00
nsMemoryImpl.h Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj 2016-07-08 14:39:53 -07:00
nsMemoryInfoDumper.cpp Bug 1393058 - Disable nsMemoryInfo dumper RT signal handling on Android. r=mccr8 2017-09-01 15:27:44 -07:00
nsMemoryInfoDumper.h
nsMemoryReporterManager.cpp Bug 1403868 (part 4) - Reduce tools/profiler/public/*.h to almost nothing in non-MOZ_GECKO_PROFILER builds. r=mstange. 2017-10-04 09:11:18 +11:00
nsMemoryReporterManager.h Bug 1375281 - Part 2: Implementation of nsMemoryReporterManager::GetHeapAllocatedAsync(). r=erahm,froydnj 2017-07-06 11:19:40 +08:00
nsMessageLoop.cpp Bug 1382172 - Name nsITimerCallback instances in native implementation. r=billm 2017-07-27 02:18:20 +08:00
nsMessageLoop.h
nsObjCExceptions.h Bug 1293541 - Clean up NS_OBJC_*_TRY_* macros. r=mstange. 2016-08-09 14:27:59 +10:00
NSPRLogModulesParser.cpp Bug 1339537 - Part 6: Pass std::function values tree by const reference instead of by value, r=ehsan 2017-04-27 12:44:57 -04:00
NSPRLogModulesParser.h Bug 1339537 - Part 6: Pass std::function values tree by const reference instead of by value, r=ehsan 2017-04-27 12:44:57 -04:00
nsQueryObject.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
nsrootidl.idl Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj 2017-08-16 16:48:52 -07:00
nsSecurityConsoleMessage.cpp
nsSecurityConsoleMessage.h
nsSetDllDirectory.h
nsStatusReporterManager.cpp Bug 1372405 - Provide names for all runnables in the tree (r=froydnj) 2017-06-26 14:19:58 -07:00
nsStatusReporterManager.h
nsSystemInfo.cpp Bug 1369561 - Address misc. SnprintfLiteral correctness nits. r=jld, r=froydnj 2017-09-15 14:47:54 -07:00
nsSystemInfo.h Backed out changeset 8d3ff1d1a809 (bug 1220344) for failing android tests 2015-11-05 11:48:06 +01:00
nsTraceRefcnt.cpp Bug 1384814 - Remove critical address machinery from Mac implementation of MozStackWalk(). r=glandium. 2017-10-03 13:53:14 +11:00
nsTraceRefcnt.h Bug 1308995, part 2 - Remove nsTraceRefcnt::StatisticsType arguments. r=froydnj 2016-10-10 10:56:09 -07:00
nsTWeakRef.h Bug 1332631 part B - file moves from xpcom/glue to xpcom/base, r=froydnj 2017-01-23 09:24:01 -05:00
nsUUIDGenerator.cpp
nsUUIDGenerator.h
nsVersionComparator.cpp Bug 1394013 Fix forbidden string constant assignment r=froydnj 2017-08-22 16:58:06 -05:00
nsVersionComparator.h Bug 1332631 part B - file moves from xpcom/glue to xpcom/base, r=froydnj 2017-01-23 09:24:01 -05:00
nsVersionComparatorImpl.cpp
nsVersionComparatorImpl.h
nsWeakPtr.h
nsWeakReference.cpp Bug 1393885 - provide a faster path for do_GetWeakReference; r=erahm 2017-09-05 15:39:40 -04:00
nsWeakReference.h Bug 1332631 part B - file moves from xpcom/glue to xpcom/base, r=froydnj 2017-01-23 09:24:01 -05:00
nsWindowsHelpers.h Bug 1322465 part 15 - Use explicit/MOZ_IMPLICIT for the unary constructors in xpcom/. r=bobowen,Ehsan 2016-12-16 16:01:11 +08:00
OwningNonNull.h Bug 1380423 - Add static-analysis to enforce strict rules on functions which can run scripts. r=mystor 2017-08-08 19:48:53 +03:00
SizeOfState.h Bug 1383982 (attempt 2) - Introduce a general mechanism for measuring memory usage of graph-like structures. r=erahm. 2017-07-28 20:10:04 +10:00
StaticMutex.h Bug 1226376 - Part 2: Annotate StaticMutex with MOZ_ONLY_USED_TO_AVOID_STATIC_CONSTRUCTORS, r=nfroyd 2016-01-08 15:34:24 -05:00
StaticPtr.h Bug 1396676: Return already_AddRefed from cookie service GetSingleton() methods. r=jdm 2017-09-04 15:05:10 -07:00
SystemMemoryReporter.cpp Bug 870698 - Part 2: Replace Append("") with AppendLiteral(""). r=erahm 2017-09-03 22:14:11 -07:00
SystemMemoryReporter.h