8169638: serviceability/sa/TestInstanceKlassSize.java and serviceability/sa/TestInstanceKlassSizeForInterface.java fail compilation
authordsamersoff
Thu, 17 Nov 2016 15:54:48 +0300
changeset 42573 a20695c30be5
parent 42572 faf8f5152129
child 42574 25ff9171b28b
child 42575 bd1618170c93
8169638: serviceability/sa/TestInstanceKlassSize.java and serviceability/sa/TestInstanceKlassSizeForInterface.java fail compilation Summary: Modified the jtreg tests to use @modules Reviewed-by: dsamersoff, rehn Contributed-by: jini.george@oracle.com
hotspot/test/serviceability/sa/TestInstanceKlassSize.java
hotspot/test/serviceability/sa/TestInstanceKlassSizeForInterface.java
--- a/hotspot/test/serviceability/sa/TestInstanceKlassSize.java	Wed Nov 16 18:57:42 2016 +0300
+++ b/hotspot/test/serviceability/sa/TestInstanceKlassSize.java	Thu Nov 17 15:54:48 2016 +0300
@@ -45,19 +45,11 @@
  * @test
  * @library /test/lib
  * @modules java.base/jdk.internal.misc
- * @compile -XDignore.symbol.file=true
- *          --add-exports=jdk.hotspot.agent/sun.jvm.hotspot=ALL-UNNAMED
- *          --add-exports=jdk.hotspot.agent/sun.jvm.hotspot.utilities=ALL-UNNAMED
- *          --add-exports=jdk.hotspot.agent/sun.jvm.hotspot.oops=ALL-UNNAMED
- *          --add-exports=jdk.hotspot.agent/sun.jvm.hotspot.debugger=ALL-UNNAMED
- *          TestInstanceKlassSize.java
- * @run main/othervm
- *          --add-modules=jdk.hotspot.agent
- *          --add-exports=jdk.hotspot.agent/sun.jvm.hotspot=ALL-UNNAMED
- *          --add-exports=jdk.hotspot.agent/sun.jvm.hotspot.utilities=ALL-UNNAMED
- *          --add-exports=jdk.hotspot.agent/sun.jvm.hotspot.oops=ALL-UNNAMED
- *          --add-exports=jdk.hotspot.agent/sun.jvm.hotspot.debugger=ALL-UNNAMED
- *          TestInstanceKlassSize
+ *          jdk.hotspot.agent/sun.jvm.hotspot
+ *          jdk.hotspot.agent/sun.jvm.hotspot.utilities
+ *          jdk.hotspot.agent/sun.jvm.hotspot.oops
+ *          jdk.hotspot.agent/sun.jvm.hotspot.debugger
+ * @run main/othervm TestInstanceKlassSize
  */
 
 public class TestInstanceKlassSize {
--- a/hotspot/test/serviceability/sa/TestInstanceKlassSizeForInterface.java	Wed Nov 16 18:57:42 2016 +0300
+++ b/hotspot/test/serviceability/sa/TestInstanceKlassSizeForInterface.java	Thu Nov 17 15:54:48 2016 +0300
@@ -38,19 +38,11 @@
  * @test
  * @library /test/lib
  * @modules java.base/jdk.internal.misc
- * @compile -XDignore.symbol.file=true
- *          --add-exports=jdk.hotspot.agent/sun.jvm.hotspot=ALL-UNNAMED
- *          --add-exports=jdk.hotspot.agent/sun.jvm.hotspot.utilities=ALL-UNNAMED
- *          --add-exports=jdk.hotspot.agent/sun.jvm.hotspot.oops=ALL-UNNAMED
- *          --add-exports=jdk.hotspot.agent/sun.jvm.hotspot.debugger=ALL-UNNAMED
- *          TestInstanceKlassSizeForInterface.java
- * @run main/othervm
- *          --add-modules=jdk.hotspot.agent
- *          --add-exports=jdk.hotspot.agent/sun.jvm.hotspot=ALL-UNNAMED
- *          --add-exports=jdk.hotspot.agent/sun.jvm.hotspot.utilities=ALL-UNNAMED
- *          --add-exports=jdk.hotspot.agent/sun.jvm.hotspot.oops=ALL-UNNAMED
- *          --add-exports=jdk.hotspot.agent/sun.jvm.hotspot.debugger=ALL-UNNAMED
- *          TestInstanceKlassSizeForInterface
+ *          jdk.hotspot.agent/sun.jvm.hotspot
+ *          jdk.hotspot.agent/sun.jvm.hotspot.utilities
+ *          jdk.hotspot.agent/sun.jvm.hotspot.oops
+ *          jdk.hotspot.agent/sun.jvm.hotspot.debugger
+ * @run main/othervm TestInstanceKlassSizeForInterface
  */
 
 interface Language {