* autogen.sh: Make it work with unpatched Boehm GC.
authorStefan Ring <stefan@complang.tuwien.ac.at>
Sat, 16 Oct 2010 21:10:35 +0000 (23:10 +0200)
committerStefan Ring <stefan@complang.tuwien.ac.at>
Sat, 16 Oct 2010 21:10:35 +0000 (23:10 +0200)
* src/mm/gc-boehm.cpp: Likewise.

autogen.sh
src/mm/gc-boehm.cpp

index 5b41f04c3b038b04bf935a4aa42644421a55ad18..93efd66b1a7fe681e676e793243aee1f6a5b3565 100755 (executable)
@@ -147,4 +147,4 @@ fi
 
 export ACLOCAL AUTOCONF AUTOHEADER AUTOMAKE LIBTOOLIZE
 
-${AUTORECONF} --force --install
+${AUTORECONF} --force --install --no-recursive
index 3cc8ada0978e4b94f6c115ca2e0bb859cff9a475..70d494cbb35816d37ca8eb7d5d3a959c0f19c7e5 100644 (file)
@@ -41,6 +41,7 @@
 #endif
 
 #include "boehm-gc/include/gc.h"
+#include "boehm-gc/include/javaxfc.h"
 #include "mm/gc.hpp"
 #include "mm/memory.hpp"
 
@@ -60,6 +61,7 @@
 /* global variables ***********************************************************/
 
 static bool in_gc_out_of_memory = false;    /* is GC out of memory?           */
+static size_t gc_max_heap_size = 0;
 
 
 /* prototype static functions *************************************************/
@@ -105,6 +107,7 @@ void gc_init(size_t heapmaxsize, size_t heapstartsize)
        /* set the maximal heap size */
 
        GC_set_max_heap_size(heapmaxsize);
+       gc_max_heap_size = heapmaxsize;
 
        /* set the initial heap size */
 
@@ -215,7 +218,7 @@ int64_t gc_get_total_bytes(void)
 
 int64_t gc_get_max_heap_size(void)
 {
-       return GC_get_max_heap_size();
+       return gc_max_heap_size;
 }