Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at


« XPCOM API Reference


The GetGlobalMemoryService function returns a reference to XPCOM's global nsIMemory object.

 static nsIMemory* GetGlobalMemoryService();

Return Values

This function returns nsnull if the global memory manager does not exist or could not be initialized.


This function returns the same value as the NS_GetMemoryManager function.

See Also


Document Tags and Contributors

 Contributors to this page: Sheppy, Pmash
 Last updated by: Sheppy,