зеркало из 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= \
|
||||
$(DIST)\lib\xpcom.lib \
|
||||
$(DIST)\lib\raptorgfxwin.lib \
|
||||
!ifdef DETECT_WEBSHELL_LEAKS
|
||||
$(DIST)\lib\raptorweb.lib \
|
||||
!endif
|
||||
!ifdef NECKO
|
||||
$(DIST)\lib\neckoutil_s.lib \
|
||||
!else
|
||||
|
|
|
@ -714,12 +714,9 @@ int main(int argc, char* argv[])
|
|||
// seeing:
|
||||
}
|
||||
|
||||
#if 0
|
||||
if ( unsigned long count = NS_TotalWebShellsInExistence() )
|
||||
{
|
||||
printf("!!!Warning: there are still %l instances of nsWebShell outstanding. OK?\n", count);
|
||||
char cc;
|
||||
scanf("%c", &cc);
|
||||
#ifdef DETECT_WEBSHELL_LEAKS
|
||||
if ( unsigned long count = NS_TotalWebShellsInExistence() ) {
|
||||
printf("XXX WARNING: Number of webshells being leaked: %d \n", count);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче