зеркало из https://github.com/mozilla/gecko-dev.git
If DETECT_WEBSHELL_LEAKS is defined, check to see if webshells are leaked at shutdown. If so, dump a message to the console.
This commit is contained in:
Родитель
1965d582ce
Коммит
0572a3efca
|
@ -79,6 +79,9 @@ LCFLAGS = \
|
||||||
LLIBS= \
|
LLIBS= \
|
||||||
$(DIST)\lib\xpcom.lib \
|
$(DIST)\lib\xpcom.lib \
|
||||||
$(DIST)\lib\raptorgfxwin.lib \
|
$(DIST)\lib\raptorgfxwin.lib \
|
||||||
|
!ifdef DETECT_WEBSHELL_LEAKS
|
||||||
|
$(DIST)\lib\raptorweb.lib \
|
||||||
|
!endif
|
||||||
!ifdef NECKO
|
!ifdef NECKO
|
||||||
$(DIST)\lib\neckoutil_s.lib \
|
$(DIST)\lib\neckoutil_s.lib \
|
||||||
!else
|
!else
|
||||||
|
|
|
@ -714,12 +714,9 @@ int main(int argc, char* argv[])
|
||||||
// seeing:
|
// seeing:
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
#ifdef DETECT_WEBSHELL_LEAKS
|
||||||
if ( unsigned long count = NS_TotalWebShellsInExistence() )
|
if ( unsigned long count = NS_TotalWebShellsInExistence() ) {
|
||||||
{
|
printf("XXX WARNING: Number of webshells being leaked: %d \n", count);
|
||||||
printf("!!!Warning: there are still %l instances of nsWebShell outstanding. OK?\n", count);
|
|
||||||
char cc;
|
|
||||||
scanf("%c", &cc);
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче