OOODEBUG= -ooodebug -printlinenum
RCRDEBUG= -rcr_debug -printlinenum
RCRDEBUGV= -rcr_debug_verbose -printlinenum
-BSFLAGS= -64bit -mainclass $(PROGRAM) -heapsize-mb 5000 -garbagestats -joptimize -noloop -optimize -nolock -debug #-nooptimize #src-after-pp
+BSFLAGS= -compiler-heapsize-mb 12000 -64bit -mainclass $(PROGRAM) -garbagestats -joptimize -noloop -optimize -nolock -debug #-nooptimize #src-after-pp
CHECKPOINTSTO= -printlinenum -pointsto-check-v-runtime -debug
# -disjoint-debug-snap-method Remove 10 3 true
DISJOINTDEBUG= -disjoint -disjoint-k 1 -enable-assertions $(DRELEASEMODE)
-# -disjoint-write-dots all
+# -disjoint-write-dots final
# -disjoint-debug-scheduling
# -disjoint-debug-callsite Barneshut.Insert Barneshut.run 50 500 true
# -disjoint-debug-snap-method ArrayIndexedGraph.createNode 1 100 true \
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 -heapsize-mb NUM set output program initial heap size in MB, default is 256
+echo -compiler-heapsize-mb NUM set heap size in MB for the JVM running the compiler, default is 1500
echo -garbagestats Print garbage collection statistics
echo -webinterface enable web interface
echo -runtimedebug printout runtime debug messages
CHECKFLAG=false
RECOVERFLAG=false
MLP_ON=false
+OOOJAVA=false
RCR=false
RCR_DEBUG=false
RCR_DEBUG_VERBOSE=false
TILERA_NUM_BLOCKS="20"
TILERA_NUM_PAGES_PER_BLOCK="16"
GCCACHECOHERENTFLAG=false
+COMPILER_HEAP_SIZE="1500"
+
if [[ -z $1 ]]
then
elif [[ $1 = '-ooojava' ]]
then
MLP_ON=true
+OOOJAVA=true
JAVAOPTS="$JAVAOPTS -ooojava $2 $3"
EXTRAOPTIONS="$EXTRAOPTIONS -DPRECISE_GC -lpthread -DMLP"
shift
EXTRAOPTIONS="$EXTRAOPTIONS -DINITIALHEAPSIZE_MB=($2)"
shift
+elif [[ $1 = '-compiler-heapsize-mb' ]]
+then
+COMPILER_HEAP_SIZE="$2"
+shift
+
elif [[ $1 = '-nostalltr' ]]
then
JAVAOPTS="$JAVAOPTS -nostalltr"
#########################
# Setup class path
#########################
+if $OOOJAVA
+ then
+ # stuff for OoOJava to mask parts of the base
+ JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/ClassLibrary/OoOJava"
+fi
+
if $JNI
then
JAVAOPTS="$JAVAOPTS -classlibrary $ROBUSTROOT/classpath/ -classlibrary $ROBUSTROOT/classpath/vm/reference"
#########################
+echo "compiler running in JVM with heap size: ${COMPILER_HEAP_SIZE}MB"
+
# Build bristlecone/java sources
if $MULTICOREFLAG
then
- if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main \
+ if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx${COMPILER_HEAP_SIZE}m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main \
-dir $BUILDDIR $JAVAOPTS $SRCFILES
then exit $?
fi
if $MGCINTELFLAG
then
- if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main $JAVAOPTS \
+ if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx${COMPILER_HEAP_SIZE}m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main $JAVAOPTS \
-dir $BUILDDIR -precise $SRCFILES
then exit $?
fi
else
if ! $NOJAVA
then
- if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx1500m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main \
+ if ! ${ROBUSTROOT}/ourjava -Xms50m -Xmx${COMPILER_HEAP_SIZE}m $JAVAFORWARDOPTS -classpath $ROBUSTROOT/../cup/:$ROBUSTROOT Main.Main \
-dir $BUILDDIR -precise $JAVAOPTS $SRCFILES
then exit $?
fi