< prev index next >
test/hotspot/jtreg/runtime/valhalla/valuetypes/ObjectMethods.java
Print this page
@@ -34,10 +34,13 @@
* @library /test/lib
* @compile -XDenableValueTypes ObjectMethods.java
* @run main/othervm -Xint -XX:+EnableValhalla -XX:+UseBiasedLocking -XX:+UseCompressedClassPointers runtime.valhalla.valuetypes.ObjectMethods
* @run main/othervm -Xint -XX:+EnableValhalla -XX:-UseBiasedLocking -XX:-UseCompressedClassPointers runtime.valhalla.valuetypes.ObjectMethods
* @run main/othervm -Xint -XX:+EnableValhalla -noverify runtime.valhalla.valuetypes.ObjectMethods noverify
+ * @run main/othervm -Xcomp -XX:+EnableValhalla -XX:+UseBiasedLocking -XX:+UseCompressedClassPointers runtime.valhalla.valuetypes.ObjectMethods
+ * @run main/othervm -Xcomp -XX:+EnableValhalla -XX:-UseBiasedLocking -XX:-UseCompressedClassPointers runtime.valhalla.valuetypes.ObjectMethods
+ * @run main/othervm -Xcomp -XX:+EnableValhalla -noverify runtime.valhalla.valuetypes.ObjectMethods noverify
*/
public class ObjectMethods {
public static void main(String[] args) {
@@ -136,12 +139,11 @@
}).invokeExact(val);
throw new IllegalStateException("Unreachable code, reached");
} catch (Throwable t) {
if (t instanceof IllegalMonitorStateException) {
sawImse = true;
- }
- else {
+ } else {
throw new RuntimeException(t);
}
}
if (!sawImse) {
throw new RuntimeException("monitorexit did not fail");
< prev index next >