src/share/vm/prims/jvmtiHpp.xsl

Wed, 08 Oct 2008 08:10:51 -0700

author
ksrini
date
Wed, 08 Oct 2008 08:10:51 -0700
changeset 823
f008d3631bd1
parent 435
a61af66fc99e
child 1556
98cd9901c161
permissions
-rw-r--r--

6755845: JVM_FindClassFromBoot triggers assertions
Summary: Fixes assertions caused by one jvm_entry calling another, solved by refactoring code and modified gamma test.
Reviewed-by: dholmes, xlu

     1 <?xml version="1.0"?> 
     2 <!--
     3  Copyright 2002-2005 Sun Microsystems, Inc.  All Rights Reserved.
     4  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     6  This code is free software; you can redistribute it and/or modify it
     7  under the terms of the GNU General Public License version 2 only, as
     8  published by the Free Software Foundation.
    10  This code is distributed in the hope that it will be useful, but WITHOUT
    11  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    12  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    13  version 2 for more details (a copy is included in the LICENSE file that
    14  accompanied this code).
    16  You should have received a copy of the GNU General Public License version
    17  2 along with this work; if not, write to the Free Software Foundation,
    18  Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    20  Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    21  CA 95054 USA or visit www.sun.com if you need additional information or
    22  have any questions.
    24 -->
    26 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    28 <xsl:import href="jvmtiLib.xsl"/>
    30 <xsl:output method="text" indent="no" omit-xml-declaration="yes"/>
    32 <xsl:template match="/">
    33   <xsl:apply-templates select="specification"/>
    34 </xsl:template>
    36 <xsl:template match="specification">
    37   <xsl:call-template name="includeHeader"/>
    38   <xsl:text>
    40 enum {
    41     JVMTI_INTERNAL_CAPABILITY_COUNT = </xsl:text>
    42   <xsl:value-of select="count(//capabilityfield)"/>
    43   <xsl:text>
    44 };
    47 class JvmtiEnv : public JvmtiEnvBase {
    49 private:
    51     JvmtiEnv();
    52     ~JvmtiEnv();
    54 public:
    56     static JvmtiEnv* create_a_jvmti();
    58 </xsl:text>
    59   <xsl:apply-templates select="functionsection"/>
    60   <xsl:text>
    61 };
    62 </xsl:text>
    63 </xsl:template>
    65 <xsl:template match="functionsection">
    66   <xsl:apply-templates select="category"/>
    67 </xsl:template>
    69 <xsl:template match="category">
    70   <xsl:text>
    71   // </xsl:text><xsl:value-of select="@label"/><xsl:text> functions
    72 </xsl:text>
    73   <xsl:apply-templates select="function[not(contains(@impl,'unimpl'))]"/>
    74 </xsl:template>
    76 <xsl:template match="function">
    77   <xsl:text>    jvmtiError </xsl:text>
    78   <xsl:if test="count(@hide)=1">
    79     <xsl:value-of select="@hide"/>
    80   </xsl:if>
    81   <xsl:value-of select="@id"/>
    82   <xsl:text>(</xsl:text>
    83   <xsl:apply-templates select="parameters" mode="HotSpotSig"/>
    84   <xsl:text>);
    85 </xsl:text>
    86 </xsl:template>
    88 </xsl:stylesheet>

mercurial