8078309: compiler/jsr292/MHInlineTest.java failed with java.lang.RuntimeException: 'MHInlineTest$A::protected_x (3 bytes) virtual call' found in stdout
authorvlivanov
Wed, 22 Apr 2015 21:33:55 +0300
changeset 30301 8ebb82d73cbc
parent 30300 4b12a5b40064
child 30302 ecca632210ef
8078309: compiler/jsr292/MHInlineTest.java failed with java.lang.RuntimeException: 'MHInlineTest$A::protected_x (3 bytes) virtual call' found in stdout Reviewed-by: jrose
hotspot/test/compiler/jsr292/MHInlineTest.java
--- a/hotspot/test/compiler/jsr292/MHInlineTest.java	Tue Mar 24 10:25:09 2015 +0100
+++ b/hotspot/test/compiler/jsr292/MHInlineTest.java	Wed Apr 22 21:33:55 2015 +0300
@@ -48,15 +48,12 @@
         // The test is applicable only to C2 (present in Server VM).
         if (analyzer.getStderr().contains("Server VM")) {
             analyzer.shouldContain("MHInlineTest$B::public_x (3 bytes)   inline (hot)");
-            analyzer.shouldContain(   "MHInlineTest$B::protected_x (3 bytes)   inline (hot)");
-            analyzer.shouldContain(   "MHInlineTest$B::package_x (3 bytes)   inline (hot)");
+            analyzer.shouldContain("MHInlineTest$B::protected_x (3 bytes)   inline (hot)");
+            analyzer.shouldContain("MHInlineTest$B::package_x (3 bytes)   inline (hot)");
             analyzer.shouldContain("MHInlineTest$A::package_final_x (3 bytes)   inline (hot)");
             analyzer.shouldContain("MHInlineTest$B::private_x (3 bytes)   inline (hot)");
             analyzer.shouldContain("MHInlineTest$B::private_static_x (3 bytes)   inline (hot)");
             analyzer.shouldContain("MHInlineTest$A::package_static_x (3 bytes)   inline (hot)");
-
-            analyzer.shouldNotContain("MHInlineTest$A::protected_x (3 bytes)   virtual call");
-            analyzer.shouldNotContain("MHInlineTest$A::package_x (3 bytes)   virtual call");
         }
     }
 
@@ -179,6 +176,7 @@
             throw new Error(throwable);
         }
     }
+
     static class Launcher {
         public static void main(String[] args) throws Exception {
             for (int i = 0; i < 20_000; i++) {