#define NUMPTRS 100
-#define INITIALHEAPSIZE 256*1024*1024L
+#ifndef INITIALHEAPSIZE_MB
+#define INITIALHEAPSIZE_MB (256)
+#endif
+
+#define INITIALHEAPSIZE INITIALHEAPSIZE_MB*1024*1024L
#define GCPOINT(x) ((INTPTR)((x)*0.99))
/* This define takes in how full the heap is initially and returns a new heap size to use */
#define HEAPSIZE(x,y) ((INTPTR)(x+y))*2
echo -optional enable optional
echo -debug generate debug symbols
echo -prefetch do prefetch analysis
+echo -heapsize-mb NUM set initial heap size in MB, default is 256
echo -garbagestats Print garbage collection statistics
echo -webinterface enable web interface
echo -runtimedebug printout runtime debug messages
shift
shift
+elif [[ $1 = '-heapsize-mb' ]]
+then
+EXTRAOPTIONS="$EXTRAOPTIONS -DINITIALHEAPSIZE_MB=($2)"
+shift
+
elif [[ $1 = '-rcr' ]]
then
JAVAOPTS="$JAVAOPTS -rcr"