Added GC_init_MacOS() to make sure MaxApplZone() and MoreMasters() get called. r=sfraser, not part of standard build.

This commit is contained in:
beard%netscape.com 2000-10-24 20:18:43 +00:00
parent c34b3bd00b
commit 591b9d1b32
2 changed files with 16 additions and 0 deletions

View File

@ -25,6 +25,15 @@ unloading shared library.
#include "gc.h"
#include "gc_priv.h"
void GC_init_MacOS()
{
int i;
MaxApplZone();
for (i = 0; i < 8; ++i)
MoreMasters();
}
// use 'CODE' resource 0 to get exact location of the beginning of global space.
typedef struct {

View File

@ -405,6 +405,10 @@ void GC_init()
}
#ifdef MACOS
extern void GC_init_MacOS();
#endif
#ifdef MSWIN32
extern void GC_init_win32();
#endif
@ -425,6 +429,9 @@ void GC_init_inner()
GC_printf0("Reordering linker, didn't exclude obj_kinds\n");
}
# endif
# ifdef MACOS
GC_init_MacOS();
# endif
# ifdef MSWIN32
GC_init_win32();
# endif