hotspot/test/runtime/logging/ItablesTest.java
changeset 35858 6e704583a38f
parent 35463 b32e362563bb
child 36392 f2f1892bfa98
--- a/hotspot/test/runtime/logging/ItablesTest.java	Tue Jan 26 17:13:18 2016 +0100
+++ b/hotspot/test/runtime/logging/ItablesTest.java	Thu Jan 21 12:11:20 2016 -0500
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -27,8 +27,8 @@
  * @summary itables=trace should have logging from each of the statements
  *          in the code
  * @library /testlibrary
- * @ignore 8146435
  * @compile ClassB.java
+ *          ItablesVtableTest.java
  * @modules java.base/sun.misc
  *          java.management
  * @run driver ItablesTest
@@ -39,12 +39,10 @@
 public class ItablesTest {
     public static void main(String[] args) throws Exception {
         if (Platform.isDebugBuild()) {
-            ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
-                "-Xlog:itables=trace", "ClassB");
+            ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-Xlog:itables=trace", "ClassB");
             OutputAnalyzer output = new OutputAnalyzer(pb.start());
             output.shouldContain(": Initializing itables for ClassB");
             output.shouldContain(": Initializing itable indices for interface ");
-            output.shouldContain("vtable index ");
             output.shouldContain("itable index ");
             output.shouldContain("target: ClassB.Method1()V, method_holder: ClassB target_method flags: public");
             output.shouldContain("invokeinterface resolved method: caller-class");
@@ -53,6 +51,11 @@
             output.shouldContain("invokeinterface selected method: receiver-class");
             output.shouldContain("Resolving: klass: ");
             output.shouldHaveExitValue(0);
+
+            pb = ProcessTools.createJavaProcessBuilder("-Xlog:itables=trace", "ItablesVtableTest");
+            output = new OutputAnalyzer(pb.start());
+            output.shouldContain("vtable index ");
+            output.shouldHaveExitValue(0);
         }
     }
 }