nashorn/bin/runopt.sh
author lagergren
Fri, 18 Apr 2014 20:12:21 +0200
changeset 24741 4232289c3235
parent 24740 nashorn/bin/runoptdualcatch.sh@26791be09688
child 24745 3a6e1477362b
permissions -rw-r--r--
8040102: Remove all references to Unsafe and definition of anonymous clases from the code Summary: As the catch combinator optimization is now part of java.lang.invoke we don't need to put our own in the boot class path in any configuration anymore. Furthermore, with the completion of the array performance subtask of optimistic typing, we can remove the experimental (commented out) Unsafe accessors in the ArrayData classes Reviewed-by: attila, 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
24741
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
parents: 24740
diff changeset
     6
FILENAME="./optimistic_$(date|sed "s/ /_/g"|sed "s/:/_/g").jfr"
24720
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=..
24720
75f8388b79df 8035836: Array performance improvements
lagergren
parents: 24719
diff changeset
     9
NASHORN_JAR=$DIR/dist/nashorn.jar
24719
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    10
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    11
$JAVA_HOME/bin/java \
24720
75f8388b79df 8035836: Array performance improvements
lagergren
parents: 24719
diff changeset
    12
$FLAGS \
24719
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    13
-ea \
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    14
-esa \
24741
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
parents: 24740
diff changeset
    15
-Xbootclasspath/p:$NASHORN_JAR \
24719
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    16
-Xms2G -Xmx2G \
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    17
-XX:+UnlockCommercialFeatures \
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    18
-XX:+FlightRecorder \
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    19
-XX:FlightRecorderOptions=defaultrecording=true,disk=true,dumponexit=true,dumponexitpath=$FILENAME,stackdepth=1024 \
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    20
-XX:TypeProfileLevel=222 \
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    21
-XX:+UnlockExperimentalVMOptions \
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    22
-XX:+UseTypeSpeculation \
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    23
-XX:+UseMathExactIntrinsics \
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    24
-XX:+UnlockDiagnosticVMOptions \
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    25
-cp $CLASSPATH:../build/test/classes/ \
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    26
jdk.nashorn.tools.Shell ${@}
f726e9d67629 8035820: Optimistic recompilation
attila
parents:
diff changeset
    27
24720
75f8388b79df 8035836: Array performance improvements
lagergren
parents: 24719
diff changeset
    28
#-XX:+ShowHiddenFrames \
75f8388b79df 8035836: Array performance improvements
lagergren
parents: 24719
diff changeset
    29
#-XX:+PrintOptoAssembly \
75f8388b79df 8035836: Array performance improvements
lagergren
parents: 24719
diff changeset
    30
#-XX:-TieredCompilation \
75f8388b79df 8035836: Array performance improvements
lagergren
parents: 24719
diff changeset
    31
#-XX:CICompilerCount=1 \