VirtualBox

Ignore:
Timestamp:
Nov 6, 2023 11:09:45 AM (13 months ago)
Author:
vboxsync
Message:

libs/xpcom: Get rid of nsMemoryImpl.{cpp,h} and nsIMemory and repalce it with direct calls to RTMem* APIs, bugref:10545

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/glue/nsMemory.h

    r1 r101852  
    3939#define nsMemory_h__
    4040
    41 #include "nsIMemory.h"
    42 
    43 #define NS_MEMORY_CONTRACTID "@mozilla.org/xpcom/memory-service;1"
    44 #define NS_MEMORY_CLASSNAME  "Global Memory Service"
    45 #define NS_MEMORY_CID                                \
    46 { /* 30a04e40-38e7-11d4-8cf5-0060b0fc14a3 */         \
    47     0x30a04e40,                                      \
    48     0x38e7,                                          \
    49     0x11d4,                                          \
    50     {0x8c, 0xf5, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
    51 }
     41#include "nsISupports.h"
    5242
    5343
     
    6757    static NS_COM void*      Realloc(void* ptr, size_t size);
    6858    static NS_COM void       Free(void* ptr);
    69     static NS_COM nsresult   HeapMinimize(PRBool aImmediate);
    7059    static NS_COM void*      Clone(const void* ptr, size_t size);
    71     static NS_COM nsIMemory* GetGlobalMemoryService();       // AddRefs
    7260};
    7361
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette