Added GC_init_MacOS() to make sure MaxApplZone() and MoreMasters() get called. r=sfraser, not part of standard build.
git-svn-id: svn://10.0.0.236/trunk@81674 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
ec11c4c885
commit
46bb7b6353
@ -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…
x
Reference in New Issue
Block a user