Merge
authorsspitsyn
Thu, 24 Aug 2017 21:06:33 +0000
changeset 46978 70d1bcee7340
parent 46977 9e8d0f0de00e (diff)
parent 46975 59d4586da7bc (current diff)
child 46979 054736045ae7
Merge
hotspot/src/jdk.aot/share/classes/jdk.tools.jaotc/src/jdk/tools/jaotc/MiscUtils.java
hotspot/src/jdk.aot/share/classes/jdk.tools.jaotc/src/jdk/tools/jaotc/utils/Timer.java
hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.microbenchmarks/src/org/graalvm/compiler/microbenchmarks/graal/TestJMH.java
--- a/hotspot/src/share/vm/prims/jvmti.xml	Thu Aug 24 14:00:04 2017 +0000
+++ b/hotspot/src/share/vm/prims/jvmti.xml	Thu Aug 24 21:06:33 2017 +0000
@@ -227,7 +227,8 @@
                        label CDATA #REQUIRED>
 
    <!ELEMENT basetype (definition?,description)>
-   <!ATTLIST basetype id CDATA #REQUIRED>
+   <!ATTLIST basetype id CDATA #REQUIRED
+                      name CDATA #IMPLIED>
 
    <!ELEMENT definition (#PCDATA|jvmti)*>
 
@@ -438,7 +439,7 @@
     The details of how this is initiated are implementation specific.
   </intro>
 
-    <intro id="entry point" label="Statically Linked Agents (since version 1.2.3)">
+    <intro id="entryPoint" label="Statically Linked Agents (since version 1.2.3)">
 
       A native JVMTI Agent may be <i>statically linked</i> with the VM.
       The manner in which the library and VM image are combined is
@@ -6647,7 +6648,7 @@
           If <paramlink id="module"></paramlink> is not a module object.
         </error>
         <error id="JVMTI_ERROR_INVALID_MODULE">
-          If <paramlink id="to_modules"></paramlink> is not a module object.
+          If <paramlink id="to_module"></paramlink> is not a module object.
         </error>
         <error id="JVMTI_ERROR_ILLEGAL_ARGUMENT">
           If the package <paramlink id="pkg_name"></paramlink>
@@ -6702,7 +6703,7 @@
           If <paramlink id="module"></paramlink> is not a module object.
         </error>
         <error id="JVMTI_ERROR_INVALID_MODULE">
-          If <paramlink id="to_modules"></paramlink> is not a module object.
+          If <paramlink id="to_module"></paramlink> is not a module object.
         </error>
         <error id="JVMTI_ERROR_ILLEGAL_ARGUMENT">
           If the package <paramlink id="pkg_name"></paramlink>
@@ -13786,7 +13787,7 @@
 </example>
       </description>
     </basetype>
-    <basetype id="jvmtiEventCallbacks">
+    <basetype id="jvmtiEventCallbacks" name="eventCallbacks">
       <description>
         The callbacks used for events.
 <example>
--- a/hotspot/src/share/vm/prims/jvmti.xsl	Thu Aug 24 14:00:04 2017 +0000
+++ b/hotspot/src/share/vm/prims/jvmti.xsl	Thu Aug 24 21:06:33 2017 +0000
@@ -905,8 +905,15 @@
         </td>
         <td>
           <a>
-            <xsl:attribute name="name">
-              <xsl:value-of select="@id"/>
+            <xsl:attribute name="id">
+              <xsl:choose>
+                <xsl:when test="count(@name)=1">
+                  <xsl:value-of select="@name"/>
+                </xsl:when>
+                <xsl:otherwise>
+                  <xsl:value-of select="@id"/>
+                </xsl:otherwise>
+              </xsl:choose>
             </xsl:attribute>
           </a>
           <xsl:apply-templates select="description" mode="brief"/>
@@ -922,7 +929,7 @@
         </td>
         <td>
           <a>
-            <xsl:attribute name="name">
+            <xsl:attribute name="id">
               <xsl:value-of select="@id"/>
             </xsl:attribute>
           </a>