echo
echo Multicore GC options
echo -perfcount performance counters
+echo -memperfcount Memory performance counters
echo -multicoregc generate multi-core binary with garbage collection
echo -pmc parallel collector
echo "-numcore4gc set the number of cores for gc (should be used together with -multicoregc), defaultly set as 0"
THREADSIMULATEFLAG=false;
MULTICOREGCFLAG=false;
PERFCOUNT=false;
+MEMPERFCOUNT=false;
PMCFLAG=false;
GCMEMLOCALFLAG=false;
GCMEMFIXEDFLAG=false;
elif [[ $1 = '-perfcount' ]]
then
PERFCOUNT=true
+elif [[ $1 = '-memperfcount' ]]
+then
+MEMPERFCOUNT=true
elif [[ $1 = '-gcmem_local' ]]
then
GCMEMLOCALFLAG=true
TILERACFLAGS="${TILERACFLAGS} -DPERFCOUNT"
fi
+if $MEMPERFCOUNT
+then #MULTICOREGC version
+TILERACFLAGS="${TILERACFLAGS} -DMEMPERFCOUNT"
+fi
+
if $GCPROFILEFLAG
then # GC_PROFILE version
TILERACFLAGS="${TILERACFLAGS} -DGC_PROFILE"