mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Added GC_init_MacOS() to make sure MaxApplZone() and MoreMasters() get called. r=sfraser, not part of standard build.
This commit is contained in:
parent
c34b3bd00b
commit
591b9d1b32
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user