nashorn/bin/runopt_nojfr.sh
author lagergren
Fri, 18 Apr 2014 20:12:21 +0200
changeset 24741 4232289c3235
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:
24741
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
parents:
diff changeset
     1
#!/bin/sh
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
parents:
diff changeset
     2
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
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"
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
parents:
diff changeset
     4
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
parents:
diff changeset
     5
DIR=..
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
parents:
diff changeset
     6
NASHORN_JAR=$DIR/dist/nashorn.jar
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
parents:
diff changeset
     7
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
parents:
diff changeset
     8
$JAVA_HOME/bin/java \
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
parents:
diff changeset
     9
$FLAGS \
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
parents:
diff changeset
    10
-ea \
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
parents:
diff changeset
    11
-esa \
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
parents:
diff changeset
    12
-Xbootclasspath/p:$NASHORN_JAR \
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
parents:
diff changeset
    13
-Xms2G -Xmx2G \
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
parents:
diff changeset
    14
-XX:+UnlockCommercialFeatures \
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
parents:
diff changeset
    15
-XX:TypeProfileLevel=222 \
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
parents:
diff changeset
    16
-XX:+UnlockExperimentalVMOptions \
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
parents:
diff changeset
    17
-XX:+UseTypeSpeculation \
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
parents:
diff changeset
    18
-XX:+UseMathExactIntrinsics \
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
parents:
diff changeset
    19
-XX:+UnlockDiagnosticVMOptions \
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
parents:
diff changeset
    20
-XX:+UseNewCode \
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
parents:
diff changeset
    21
-cp $CLASSPATH:../build/test/classes/ \
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
parents:
diff changeset
    22
jdk.nashorn.tools.Shell ${@}
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
parents:
diff changeset
    23
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
parents:
diff changeset
    24
#-XX:+ShowHiddenFrames \
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
parents:
diff changeset
    25
#-XX:+PrintOptoAssembly \
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
parents:
diff changeset
    26
#-XX:-TieredCompilation \
4232289c3235 8040102: Remove all references to Unsafe and definition of anonymous clases from the code
lagergren
parents:
diff changeset
    27
#-XX:CICompilerCount=1 \