nashorn/bin/runopt.sh
author lagergren
Wed, 23 Apr 2014 17:37:41 +0200
changeset 24745 3a6e1477362b
parent 24741 4232289c3235
child 24759 31aed7d9c02a
permissions -rw-r--r--
8041434: Add synchronization to the common global constants structure Reviewed-by: attila, hannesw
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
24745
3a6e1477362b 8041434: Add synchronization to the common global constants structure
lagergren
parents: 24741
diff changeset
    28
#-Djava.security.manager= -Djava.security.policy=$DIR/build/nashorn.policy \
24720
75f8388b79df 8035836: Array performance improvements
lagergren
parents: 24719
diff changeset
    29
#-XX:+ShowHiddenFrames \
75f8388b79df 8035836: Array performance improvements
lagergren
parents: 24719
diff changeset
    30
#-XX:+PrintOptoAssembly \
75f8388b79df 8035836: Array performance improvements
lagergren
parents: 24719
diff changeset
    31
#-XX:-TieredCompilation \
75f8388b79df 8035836: Array performance improvements
lagergren
parents: 24719
diff changeset
    32
#-XX:CICompilerCount=1 \