Integrated: 8291586: Broken links in JVMTI specification
Serguei Spitsyn
sspitsyn at openjdk.org
Mon Sep 5 08:54:29 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.
This pull request has now been integrated.
Changeset: 4067321e
Author: Serguei Spitsyn <sspitsyn at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/4067321ef413cc6c934aa5e7ec652c56dfdf81eb
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
8291586: Broken links in JVMTI specification
Reviewed-by: alanb
-------------
PR: https://git.openjdk.org/jdk/pull/10153
More information about the hotspot-dev
mailing list