nashorn/bin/runoptdualcatch.sh
author lagergren
Thu, 17 Apr 2014 20:01:19 +0200
changeset 24740 26791be09688
parent 24731 ab0c8fc915ae
permissions -rw-r--r--
8040089: Apply to call transform was incomplete. Now passes all tests and performance is back Reviewed-by: hannesw, attila, sundar, jlaskey
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
24719
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
     1
#!/bin/sh
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
     2
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
     3
#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"
24731
ab0c8fc915ae 8038406: Testability: as a first step of moving loggers away from the process global space, the Debug object now supports logging POJOs from log entries as an event queue, which can be introspected from test scripts. This is way better than screen scraping brittle and subject-to-change log output.
lagergren
parents: 24722
diff changeset
     4
#FLAGS="-Djava.security.manager -Djava.security.policy=../build/nashorn.policy -Dnashorn.debug"
24719
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
     5
24720
75f8388b79df 8035836: Array performance improvements
lagergren
parents: 24719
diff changeset
     6
FILENAME="./optimistic_dual_catch_$(date|sed "s/ /_/g"|sed "s/:/_/g").jfr"
75f8388b79df 8035836: Array performance improvements
lagergren
parents: 24719
diff changeset
     7
24721
81f70e23cd3b 8036127: Prototype filter needs to be applied to getter guard as well, not just getter
lagergren
parents: 24720
diff changeset
     8
DIR=..
24740
26791be09688 8040089: Apply to call transform was incomplete. Now passes all tests and performance is back
lagergren
parents: 24731
diff changeset
     9
FAST_CATCH_COMBINATOR=
26791be09688 8040089: Apply to call transform was incomplete. Now passes all tests and performance is back
lagergren
parents: 24731
diff changeset
    10
#$DIR/bin/fastCatchCombinator.jar
24720
75f8388b79df 8035836: Array performance improvements
lagergren
parents: 24719
diff changeset
    11
NASHORN_JAR=$DIR/dist/nashorn.jar
24719
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    12
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    13
$JAVA_HOME/bin/java \
24720
75f8388b79df 8035836: Array performance improvements
lagergren
parents: 24719
diff changeset
    14
$FLAGS \
24719
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    15
-ea \
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    16
-esa \
24720
75f8388b79df 8035836: Array performance improvements
lagergren
parents: 24719
diff changeset
    17
-Xbootclasspath/p:$FAST_CATCH_COMBINATOR:$NASHORN_JAR \
24719
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    18
-Xms2G -Xmx2G \
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    19
-XX:+UnlockCommercialFeatures \
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    20
-XX:+FlightRecorder \
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    21
-XX:FlightRecorderOptions=defaultrecording=true,disk=true,dumponexit=true,dumponexitpath=$FILENAME,stackdepth=1024 \
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    22
-XX:TypeProfileLevel=222 \
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    23
-XX:+UnlockExperimentalVMOptions \
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    24
-XX:+UseTypeSpeculation \
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    25
-XX:+UseMathExactIntrinsics \
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    26
-XX:+UnlockDiagnosticVMOptions \
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    27
-cp $CLASSPATH:../build/test/classes/ \
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    28
jdk.nashorn.tools.Shell ${@}
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    29
24720
75f8388b79df 8035836: Array performance improvements
lagergren
parents: 24719
diff changeset
    30
#-XX:+ShowHiddenFrames \
75f8388b79df 8035836: Array performance improvements
lagergren
parents: 24719
diff changeset
    31
#-XX:+PrintOptoAssembly \
75f8388b79df 8035836: Array performance improvements
lagergren
parents: 24719
diff changeset
    32
#-XX:-TieredCompilation \
75f8388b79df 8035836: Array performance improvements
lagergren
parents: 24719
diff changeset
    33
#-XX:CICompilerCount=1 \