зеркало из https://github.com/mozilla/pjs.git
Register libraries with the refcnt tracer
This commit is contained in:
Родитель
98274a7822
Коммит
f35fbea133
|
@ -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) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче