RFR: 8291586: Broken links in JVMTI specification
Serguei Spitsyn
sspitsyn at openjdk.org
Mon Sep 5 08:54:28 UTC 2022
On Sat, 3 Sep 2022 00:52:56 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:
> The Loom related spec of the extension VirtualThreadMount and VirtualThreadUnmount events in the jvmti.xml is surrounded by the elements `<elide> ... </elide>`, so these specs have to be ignored when the `jvmti.html `is generated. However the `jvmti.xsl` which does the XSL transformation misses to do that when the description of the JVM TI capabilities is collected.
>
> The fix is a one-liner:
>
> diff --git a/src/hotspot/share/prims/jvmti.xsl b/src/hotspot/share/prims/jvmti.xsl
> index 5ef89f91daf..d54d2a371e6 100644
> --- a/src/hotspot/share/prims/jvmti.xsl
> +++ b/src/hotspot/share/prims/jvmti.xsl
> @@ -1172,7 +1172,7 @@ typedef struct {
> </tr>
> <xsl:for-each select="//capabilityfield">
> <xsl:variable name="capa" select="@id"/>
> - <xsl:variable name="events" select="//event[capabilities/required/@id=$capa]"/>
> + <xsl:variable name="events" select="//event[capabilities/required/@id=$capa and not(ancestor::elide)]"/>
> <xsl:if test="count($events)">
> <tr>
> <th scope="row">
>
>
> The correctness verification both the generated `jvmti.html` and `jvmti.h` was checked.
> TBD: mach5 sanity builds and `nsk.jvmti` tests runs.
I'm going to integrate this fix with one review as trivial.
In fact, the fix does not change anything in the implementation and behavior.
It only results in removal of a couple of unneeded links in the JVM TI spec (jvmti.html).
-------------
PR: https://git.openjdk.org/jdk/pull/10153
More information about the hotspot-dev
mailing list