Register libraries with the refcnt tracer

This commit is contained in:
kipp%netscape.com 1998-09-12 19:25:28 +00:00
Родитель 98274a7822
Коммит f35fbea133
2 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -234,6 +234,11 @@ nsresult nsRepository::loadFactory(FactoryEntry *aEntry,
aEntry->instance = PR_LoadLibrary(aEntry->library); aEntry->instance = PR_LoadLibrary(aEntry->library);
} }
if (aEntry->instance != NULL) { if (aEntry->instance != NULL) {
#ifdef MOZ_TRACE_XPCOM_REFCNT
// Inform refcnt tracer of new library so that calls through the
// new library can be traced.
nsTraceRefcnt::LoadLibrarySymbols(aEntry->library, aEntry->instance);
#endif
nsFactoryProc proc = (nsFactoryProc) PR_FindSymbol(aEntry->instance, nsFactoryProc proc = (nsFactoryProc) PR_FindSymbol(aEntry->instance,
"NSGetFactory"); "NSGetFactory");
if (proc != NULL) { if (proc != NULL) {

Просмотреть файл

@ -234,6 +234,11 @@ nsresult nsRepository::loadFactory(FactoryEntry *aEntry,
aEntry->instance = PR_LoadLibrary(aEntry->library); aEntry->instance = PR_LoadLibrary(aEntry->library);
} }
if (aEntry->instance != NULL) { if (aEntry->instance != NULL) {
#ifdef MOZ_TRACE_XPCOM_REFCNT
// Inform refcnt tracer of new library so that calls through the
// new library can be traced.
nsTraceRefcnt::LoadLibrarySymbols(aEntry->library, aEntry->instance);
#endif
nsFactoryProc proc = (nsFactoryProc) PR_FindSymbol(aEntry->instance, nsFactoryProc proc = (nsFactoryProc) PR_FindSymbol(aEntry->instance,
"NSGetFactory"); "NSGetFactory");
if (proc != NULL) { if (proc != NULL) {