8043138: Attach API should not require jvmstat rmi protocol
authorjbachorik
Fri, 20 Nov 2015 13:02:06 +0100
changeset 34106 967bd03e052b
parent 34105 ce71d2b2f34b
child 34107 6f941d693c81
8043138: Attach API should not require jvmstat rmi protocol Reviewed-by: alanb, mchung, erikj, ihse
make/Images.gmk
modules.xml
--- a/make/Images.gmk	Fri Nov 27 16:29:22 2015 +0100
+++ b/make/Images.gmk	Fri Nov 20 13:02:06 2015 +0100
@@ -44,8 +44,8 @@
                jdk.vm.ci jdk.management
 
 # providers
-PROVIDER_MODULES += jdk.charsets jdk.crypto.ec jdk.crypto.pkcs11 jdk.jvmstat jdk.localedata \
-               jdk.naming.dns jdk.naming.rmi jdk.zipfs
+PROVIDER_MODULES += jdk.charsets jdk.crypto.ec jdk.crypto.pkcs11 jdk.jvmstat jdk.jvmstat.rmi \
+               jdk.localedata jdk.naming.dns jdk.naming.rmi jdk.zipfs
 
 # tools
 TOOLS_MODULES += jdk.attach jdk.compiler jdk.dev \
--- a/modules.xml	Fri Nov 27 16:29:22 2015 +0100
+++ b/modules.xml	Fri Nov 20 13:02:06 2015 +0100
@@ -1810,16 +1810,31 @@
   <module>
     <name>jdk.jvmstat</name>
     <depend>java.base</depend>
-    <depend>java.rmi</depend>
     <export>
       <name>sun.jvmstat.monitor</name>
       <to>jdk.attach</to>
       <to>jdk.jcmd</to>
       <to>jdk.jconsole</to>
+      <to>jdk.jvmstat.rmi</to>
     </export>
     <export>
       <name>sun.jvmstat.monitor.event</name>
       <to>jdk.jcmd</to>
+      <to>jdk.jvmstat.rmi</to>
+    </export>
+    <export>
+      <name>sun.jvmstat.perfdata.monitor</name>
+      <to>jdk.jvmstat.rmi</to>
+    </export>
+  </module>
+  <module>
+    <name>jdk.jvmstat.rmi</name>
+    <depend>java.base</depend>
+    <depend>java.rmi</depend>
+    <depend>jdk.jvmstat</depend>
+    <export>
+      <name>sun.jvmstat.monitor.remote</name>
+      <to>java.rmi</to>
     </export>
   </module>
   <module>