26 lines
873 B
Bash
26 lines
873 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
#FLAGS="-Djava.lang.invoke.MethodHandle.COMPILE_THRESHOLD=3 -Djava.lang.invoke.MethodHandle.DUMP_CLASS_FILES=true -Djava.lang.invoke.MethodHandle.TRACE_METHOD_LINKAGE=true -Djava.lang.invoke.MethodHandle.TRACE_INTERPRETER=true"
|
||
|
|
||
|
FILENAME="./optimistic_dual_catch$(date|sed "s/ /_/g"|sed "s/:/_/g").jfr"
|
||
|
|
||
|
$JAVA_HOME/bin/java \
|
||
|
-ea \
|
||
|
-esa \
|
||
|
$FLAGS \
|
||
|
-Dnashorn.fastrewrite \
|
||
|
-Dnashorn.optimistic \
|
||
|
-Xbootclasspath/p:/Users/marcus/src/tip/dist/nashorn.jar \
|
||
|
-Xms2G -Xmx2G \
|
||
|
-XX:+UnlockCommercialFeatures \
|
||
|
-XX:+FlightRecorder \
|
||
|
-XX:FlightRecorderOptions=defaultrecording=true,disk=true,dumponexit=true,dumponexitpath=$FILENAME,stackdepth=1024 \
|
||
|
-XX:TypeProfileLevel=222 \
|
||
|
-XX:+UnlockExperimentalVMOptions \
|
||
|
-XX:+UseTypeSpeculation \
|
||
|
-XX:+UseMathExactIntrinsics \
|
||
|
-XX:+UnlockDiagnosticVMOptions \
|
||
|
-cp $CLASSPATH:../build/test/classes/ \
|
||
|
jdk.nashorn.tools.Shell ${@}
|
||
|
|