annotate src/share/vm/prims/jvmtiLib.xsl @ 3917:eca1193ca245

4965777: GC changes to support use of discovered field for pending references Summary: If and when the reference handler thread is able to use the discovered field to link reference objects in its pending list, so will GC. In that case, GC will scan through this field once a reference object has been placed on the pending list, but not scan that field before that stage, as the field is used by the concurrent GC thread to link discovered objects. When ReferenceHandleR thread does not use the discovered field for the purpose of linking the elements in the pending list, as would be the case in older JDKs, the JVM will fall back to the old behaviour of using the next field for that purpose. Reviewed-by: jcoomes, mchung, stefank
author ysr
date Wed, 07 Sep 2011 13:55:42 -0700
parents c18cbe5936b8
children 70f715dfbb41 da91efe96a93
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 <?xml version="1.0" encoding="utf-8"?>
a61af66fc99e Initial load
duke
parents:
diff changeset
2 <!--
a61af66fc99e Initial load
duke
parents:
diff changeset
3
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
4 Copyright (c) 2002, 2007, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
5 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
6
a61af66fc99e Initial load
duke
parents:
diff changeset
7 This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
8 under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
9 published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
10
a61af66fc99e Initial load
duke
parents:
diff changeset
11 This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
14 version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
15 accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
16
a61af66fc99e Initial load
duke
parents:
diff changeset
17 You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
18 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
19 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
20
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
21 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
22 or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
23 questions.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
24
a61af66fc99e Initial load
duke
parents:
diff changeset
25 -->
a61af66fc99e Initial load
duke
parents:
diff changeset
26
a61af66fc99e Initial load
duke
parents:
diff changeset
27 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
a61af66fc99e Initial load
duke
parents:
diff changeset
28 version="1.0">
a61af66fc99e Initial load
duke
parents:
diff changeset
29
a61af66fc99e Initial load
duke
parents:
diff changeset
30 <xsl:template name="microversion">
a61af66fc99e Initial load
duke
parents:
diff changeset
31 <xsl:value-of select="//specification/@microversion"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
32 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
33
a61af66fc99e Initial load
duke
parents:
diff changeset
34 <xsl:template name="showbasicversion">
a61af66fc99e Initial load
duke
parents:
diff changeset
35 <xsl:value-of select="//specification/@majorversion"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
36 <xsl:text>.</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
37 <xsl:value-of select="//specification/@minorversion"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
38 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
39
a61af66fc99e Initial load
duke
parents:
diff changeset
40 <xsl:template name="showversion">
a61af66fc99e Initial load
duke
parents:
diff changeset
41 <xsl:call-template name="showbasicversion"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
42 <xsl:text>.</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
43 <xsl:call-template name="microversion"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
44 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
45
a61af66fc99e Initial load
duke
parents:
diff changeset
46 <xsl:template name="copyrightComment">
a61af66fc99e Initial load
duke
parents:
diff changeset
47 <xsl:text>/* </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
48 <!-- Copy the Copyright comment from jvmti.xml -->
a61af66fc99e Initial load
duke
parents:
diff changeset
49 <xsl:value-of select="/comment()[position()=1]"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
50 <xsl:text> */ &#xA;&#xA;</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
51 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
52
a61af66fc99e Initial load
duke
parents:
diff changeset
53 <xsl:template name="includeHeader">
a61af66fc99e Initial load
duke
parents:
diff changeset
54 <xsl:call-template name="copyrightComment"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
55 <xsl:text> /* AUTOMATICALLY GENERATED FILE - DO NOT EDIT */ &#xA;</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
56 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
57
a61af66fc99e Initial load
duke
parents:
diff changeset
58 <xsl:template name="sourceHeader">
a61af66fc99e Initial load
duke
parents:
diff changeset
59 <xsl:call-template name="copyrightComment"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
60 <xsl:text> // AUTOMATICALLY GENERATED FILE - DO NOT EDIT &#xA;</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
61 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
62
a61af66fc99e Initial load
duke
parents:
diff changeset
63
a61af66fc99e Initial load
duke
parents:
diff changeset
64 <xsl:template match="parameters" mode="signature">
a61af66fc99e Initial load
duke
parents:
diff changeset
65 <xsl:param name="comma">
a61af66fc99e Initial load
duke
parents:
diff changeset
66 <xsl:text>,
a61af66fc99e Initial load
duke
parents:
diff changeset
67 </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
68 </xsl:param>
a61af66fc99e Initial load
duke
parents:
diff changeset
69 <xsl:if test="count(param) != 0">
a61af66fc99e Initial load
duke
parents:
diff changeset
70 <xsl:value-of select="$comma"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
71 </xsl:if>
a61af66fc99e Initial load
duke
parents:
diff changeset
72 <xsl:apply-templates select="." mode="signaturenoleadcomma">
a61af66fc99e Initial load
duke
parents:
diff changeset
73 <xsl:with-param name="comma" select="$comma"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
74 </xsl:apply-templates>
a61af66fc99e Initial load
duke
parents:
diff changeset
75 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
76
a61af66fc99e Initial load
duke
parents:
diff changeset
77
a61af66fc99e Initial load
duke
parents:
diff changeset
78 <xsl:template match="parameters" mode="signaturenoleadcomma">
a61af66fc99e Initial load
duke
parents:
diff changeset
79 <xsl:param name="comma">
a61af66fc99e Initial load
duke
parents:
diff changeset
80 <xsl:text>,
a61af66fc99e Initial load
duke
parents:
diff changeset
81 </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
82 </xsl:param>
a61af66fc99e Initial load
duke
parents:
diff changeset
83 <xsl:variable name="length" select="count(param)"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
84 <xsl:for-each select="param">
a61af66fc99e Initial load
duke
parents:
diff changeset
85 <xsl:variable name="separator">
a61af66fc99e Initial load
duke
parents:
diff changeset
86 <xsl:choose>
a61af66fc99e Initial load
duke
parents:
diff changeset
87 <xsl:when test="position()=$length">
a61af66fc99e Initial load
duke
parents:
diff changeset
88 <xsl:text></xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
89 </xsl:when>
a61af66fc99e Initial load
duke
parents:
diff changeset
90 <xsl:otherwise>
a61af66fc99e Initial load
duke
parents:
diff changeset
91 <xsl:value-of select="$comma"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
92 </xsl:otherwise>
a61af66fc99e Initial load
duke
parents:
diff changeset
93 </xsl:choose>
a61af66fc99e Initial load
duke
parents:
diff changeset
94 </xsl:variable>
a61af66fc99e Initial load
duke
parents:
diff changeset
95 <xsl:apply-templates select="." mode="signature">
a61af66fc99e Initial load
duke
parents:
diff changeset
96 <xsl:with-param name="comma" select="$separator"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
97 </xsl:apply-templates>
a61af66fc99e Initial load
duke
parents:
diff changeset
98 </xsl:for-each>
a61af66fc99e Initial load
duke
parents:
diff changeset
99 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
100
a61af66fc99e Initial load
duke
parents:
diff changeset
101
a61af66fc99e Initial load
duke
parents:
diff changeset
102 <!-- remove jclass parameters that are jclass/jmethodID pairs.
a61af66fc99e Initial load
duke
parents:
diff changeset
103 since the jclass was removed in JVMTI.
a61af66fc99e Initial load
duke
parents:
diff changeset
104 -->
a61af66fc99e Initial load
duke
parents:
diff changeset
105 <xsl:template match="param" mode="signature">
a61af66fc99e Initial load
duke
parents:
diff changeset
106 <xsl:param name="comma"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
107 <xsl:variable name="id" select="@id"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
108 <xsl:for-each select="child::*[position()=1]">
a61af66fc99e Initial load
duke
parents:
diff changeset
109 <xsl:if test="count(@method)=0">
a61af66fc99e Initial load
duke
parents:
diff changeset
110 <xsl:apply-templates select="." mode="signature"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
111 <xsl:text> </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
112 <xsl:value-of select="$id"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
113 <xsl:value-of select="$comma"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
114 </xsl:if>
a61af66fc99e Initial load
duke
parents:
diff changeset
115 </xsl:for-each>
a61af66fc99e Initial load
duke
parents:
diff changeset
116 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
117
a61af66fc99e Initial load
duke
parents:
diff changeset
118
a61af66fc99e Initial load
duke
parents:
diff changeset
119 <xsl:template match="field" mode="signature">
a61af66fc99e Initial load
duke
parents:
diff changeset
120 <xsl:text> </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
121 <xsl:apply-templates select="child::*[position()=1]" mode="signature"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
122 <xsl:text> </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
123 <xsl:value-of select="@id"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
124 <xsl:text>;
a61af66fc99e Initial load
duke
parents:
diff changeset
125 </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
126 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
127
a61af66fc99e Initial load
duke
parents:
diff changeset
128 <xsl:template match="nullok" mode="funcdescription">
a61af66fc99e Initial load
duke
parents:
diff changeset
129 If
a61af66fc99e Initial load
duke
parents:
diff changeset
130 <code>
a61af66fc99e Initial load
duke
parents:
diff changeset
131 <xsl:value-of select="../../@id"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
132 </code>
a61af66fc99e Initial load
duke
parents:
diff changeset
133 is
a61af66fc99e Initial load
duke
parents:
diff changeset
134 <code>NULL</code>, <xsl:apply-templates/>.
a61af66fc99e Initial load
duke
parents:
diff changeset
135 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
136
a61af66fc99e Initial load
duke
parents:
diff changeset
137 <xsl:template match="vmbuf|allocfieldbuf|struct" mode="funcdescription">
a61af66fc99e Initial load
duke
parents:
diff changeset
138 <xsl:message terminate="yes">
a61af66fc99e Initial load
duke
parents:
diff changeset
139 vmbuf|allocfieldbuf|struct as type of function parameter
a61af66fc99e Initial load
duke
parents:
diff changeset
140 </xsl:message>
a61af66fc99e Initial load
duke
parents:
diff changeset
141 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
142
a61af66fc99e Initial load
duke
parents:
diff changeset
143 <xsl:template match="ptrtype" mode="funcdescription">
a61af66fc99e Initial load
duke
parents:
diff changeset
144 <p/>
a61af66fc99e Initial load
duke
parents:
diff changeset
145 <xsl:apply-templates select="nullok" mode="funcdescription"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
146 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
147
a61af66fc99e Initial load
duke
parents:
diff changeset
148 <xsl:template match="inptr" mode="funcdescription">
a61af66fc99e Initial load
duke
parents:
diff changeset
149 <p/>
a61af66fc99e Initial load
duke
parents:
diff changeset
150 <xsl:variable name="child" select="child::*[position()=1]"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
151 <xsl:text>Agent passes in a pointer</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
152 <xsl:if test="name($child)!='void'">
a61af66fc99e Initial load
duke
parents:
diff changeset
153 <xsl:text> to </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
154 <code>
a61af66fc99e Initial load
duke
parents:
diff changeset
155 <xsl:apply-templates select="$child" mode="signature"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
156 </code>
a61af66fc99e Initial load
duke
parents:
diff changeset
157 </xsl:if>
a61af66fc99e Initial load
duke
parents:
diff changeset
158 <xsl:text>. </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
159 <xsl:apply-templates select="nullok" mode="funcdescription"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
160 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
161
a61af66fc99e Initial load
duke
parents:
diff changeset
162 <xsl:template match="inbuf" mode="funcdescription">
a61af66fc99e Initial load
duke
parents:
diff changeset
163 <p/>
a61af66fc99e Initial load
duke
parents:
diff changeset
164 <xsl:variable name="child" select="child::*[position()=1]"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
165 <xsl:text>Agent passes in </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
166 <xsl:choose>
a61af66fc99e Initial load
duke
parents:
diff changeset
167 <xsl:when test="name($child)='void'">
a61af66fc99e Initial load
duke
parents:
diff changeset
168 <xsl:text> a pointer</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
169 </xsl:when>
a61af66fc99e Initial load
duke
parents:
diff changeset
170 <xsl:otherwise>
a61af66fc99e Initial load
duke
parents:
diff changeset
171 <xsl:text> an array of </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
172 <xsl:if test="count(@incount)=1 and @incount!=''">
a61af66fc99e Initial load
duke
parents:
diff changeset
173 <code>
a61af66fc99e Initial load
duke
parents:
diff changeset
174 <xsl:value-of select="@incount"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
175 </code>
a61af66fc99e Initial load
duke
parents:
diff changeset
176 <xsl:text> elements of </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
177 </xsl:if>
a61af66fc99e Initial load
duke
parents:
diff changeset
178 <code>
a61af66fc99e Initial load
duke
parents:
diff changeset
179 <xsl:apply-templates select="$child" mode="signature"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
180 </code>
a61af66fc99e Initial load
duke
parents:
diff changeset
181 </xsl:otherwise>
a61af66fc99e Initial load
duke
parents:
diff changeset
182 </xsl:choose>
a61af66fc99e Initial load
duke
parents:
diff changeset
183 <xsl:text>. </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
184 <xsl:apply-templates select="nullok" mode="funcdescription"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
185 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
186
a61af66fc99e Initial load
duke
parents:
diff changeset
187 <xsl:template match="outptr" mode="funcdescription">
a61af66fc99e Initial load
duke
parents:
diff changeset
188 <p/>
a61af66fc99e Initial load
duke
parents:
diff changeset
189 <xsl:text>Agent passes a pointer to a </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
190 <code>
a61af66fc99e Initial load
duke
parents:
diff changeset
191 <xsl:apply-templates select="child::*[position()=1]" mode="signature"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
192 </code>
a61af66fc99e Initial load
duke
parents:
diff changeset
193 <xsl:text>. </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
194 <xsl:text>On return, the </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
195 <code>
a61af66fc99e Initial load
duke
parents:
diff changeset
196 <xsl:apply-templates select="child::*[position()=1]" mode="signature"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
197 </code>
a61af66fc99e Initial load
duke
parents:
diff changeset
198 <xsl:text> has been set. </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
199 <xsl:apply-templates select="nullok" mode="funcdescription"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
200 <xsl:apply-templates select="child::*[position()=1]" mode="returndescription"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
201 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
202
a61af66fc99e Initial load
duke
parents:
diff changeset
203 <xsl:template match="allocbuf" mode="funcdescription">
a61af66fc99e Initial load
duke
parents:
diff changeset
204 <p/>
a61af66fc99e Initial load
duke
parents:
diff changeset
205 <xsl:text>Agent passes a pointer to a </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
206 <code>
a61af66fc99e Initial load
duke
parents:
diff changeset
207 <xsl:apply-templates select="child::*[position()=1]" mode="signature"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
208 <xsl:text>*</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
209 </code>
a61af66fc99e Initial load
duke
parents:
diff changeset
210 <xsl:text>. </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
211 <xsl:text>On return, the </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
212 <code>
a61af66fc99e Initial load
duke
parents:
diff changeset
213 <xsl:apply-templates select="child::*[position()=1]" mode="signature"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
214 <xsl:text>*</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
215 </code>
a61af66fc99e Initial load
duke
parents:
diff changeset
216 <xsl:text> points to a newly allocated array</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
217 <xsl:choose>
a61af66fc99e Initial load
duke
parents:
diff changeset
218 <xsl:when test="count(@outcount)=1 and @outcount!=''">
a61af66fc99e Initial load
duke
parents:
diff changeset
219 <xsl:text> of size </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
220 <code>
a61af66fc99e Initial load
duke
parents:
diff changeset
221 <xsl:text>*</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
222 <xsl:value-of select="@outcount"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
223 </code>
a61af66fc99e Initial load
duke
parents:
diff changeset
224 </xsl:when>
a61af66fc99e Initial load
duke
parents:
diff changeset
225 <xsl:otherwise>
a61af66fc99e Initial load
duke
parents:
diff changeset
226 <xsl:if test="count(@incount)=1 and @incount!=''">
a61af66fc99e Initial load
duke
parents:
diff changeset
227 <xsl:text> of size </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
228 <code>
a61af66fc99e Initial load
duke
parents:
diff changeset
229 <xsl:value-of select="@incount"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
230 </code>
a61af66fc99e Initial load
duke
parents:
diff changeset
231 </xsl:if>
a61af66fc99e Initial load
duke
parents:
diff changeset
232 </xsl:otherwise>
a61af66fc99e Initial load
duke
parents:
diff changeset
233 </xsl:choose>
a61af66fc99e Initial load
duke
parents:
diff changeset
234 <xsl:text>. The array should be freed with </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
235 <a href="#Deallocate"><code>Deallocate</code></a>
a61af66fc99e Initial load
duke
parents:
diff changeset
236 <xsl:text>. </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
237 <xsl:apply-templates select="nullok" mode="funcdescription"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
238 <xsl:apply-templates select="child::*[position()=1]" mode="returndescription">
a61af66fc99e Initial load
duke
parents:
diff changeset
239 <xsl:with-param name="plural" select="'plural'"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
240 </xsl:apply-templates>
a61af66fc99e Initial load
duke
parents:
diff changeset
241 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
242
a61af66fc99e Initial load
duke
parents:
diff changeset
243 <xsl:template match="allocallocbuf" mode="funcdescription">
a61af66fc99e Initial load
duke
parents:
diff changeset
244 <p/>
a61af66fc99e Initial load
duke
parents:
diff changeset
245 <xsl:text>Agent passes a pointer to a </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
246 <code>
a61af66fc99e Initial load
duke
parents:
diff changeset
247 <xsl:apply-templates select="child::*[position()=1]" mode="signature"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
248 <xsl:text>**</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
249 </code>
a61af66fc99e Initial load
duke
parents:
diff changeset
250 <xsl:text>. </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
251 <xsl:text>On return, the </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
252 <code>
a61af66fc99e Initial load
duke
parents:
diff changeset
253 <xsl:apply-templates select="child::*[position()=1]" mode="signature"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
254 <xsl:text>**</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
255 </code>
a61af66fc99e Initial load
duke
parents:
diff changeset
256 <xsl:text> points to a newly allocated array</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
257 <xsl:choose>
a61af66fc99e Initial load
duke
parents:
diff changeset
258 <xsl:when test="count(@outcount)=1 and @outcount!=''">
a61af66fc99e Initial load
duke
parents:
diff changeset
259 <xsl:text> of size </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
260 <code>
a61af66fc99e Initial load
duke
parents:
diff changeset
261 <xsl:text>*</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
262 <xsl:value-of select="@outcount"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
263 </code>
a61af66fc99e Initial load
duke
parents:
diff changeset
264 </xsl:when>
a61af66fc99e Initial load
duke
parents:
diff changeset
265 <xsl:otherwise>
a61af66fc99e Initial load
duke
parents:
diff changeset
266 <xsl:if test="count(@incount)=1 and @incount!=''">
a61af66fc99e Initial load
duke
parents:
diff changeset
267 <xsl:text> of size </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
268 <code>
a61af66fc99e Initial load
duke
parents:
diff changeset
269 <xsl:value-of select="@incount"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
270 </code>
a61af66fc99e Initial load
duke
parents:
diff changeset
271 </xsl:if>
a61af66fc99e Initial load
duke
parents:
diff changeset
272 </xsl:otherwise>
a61af66fc99e Initial load
duke
parents:
diff changeset
273 </xsl:choose>
a61af66fc99e Initial load
duke
parents:
diff changeset
274 <xsl:text>, each element of which is also newly allocated.
a61af66fc99e Initial load
duke
parents:
diff changeset
275 The array should be freed with </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
276 <a href="#Deallocate"><code>Deallocate</code></a>
a61af66fc99e Initial load
duke
parents:
diff changeset
277 <xsl:text>.
a61af66fc99e Initial load
duke
parents:
diff changeset
278 Each of the elements should be freed with </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
279 <a href="#Deallocate"><code>Deallocate</code></a>
a61af66fc99e Initial load
duke
parents:
diff changeset
280 <xsl:text>. </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
281 <xsl:apply-templates select="nullok" mode="funcdescription"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
282 <xsl:apply-templates select="child::*[position()=1]" mode="returndescription">
a61af66fc99e Initial load
duke
parents:
diff changeset
283 <xsl:with-param name="plural" select="'plural'"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
284 </xsl:apply-templates>
a61af66fc99e Initial load
duke
parents:
diff changeset
285 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
286
a61af66fc99e Initial load
duke
parents:
diff changeset
287 <xsl:template match="outbuf" mode="funcdescription">
a61af66fc99e Initial load
duke
parents:
diff changeset
288 <p/>
a61af66fc99e Initial load
duke
parents:
diff changeset
289 <xsl:text>Agent passes an array </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
290 <xsl:if test="count(@incount)=1 and @incount!=''">
a61af66fc99e Initial load
duke
parents:
diff changeset
291 <xsl:text>large enough to hold </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
292 <code>
a61af66fc99e Initial load
duke
parents:
diff changeset
293 <xsl:value-of select="@incount"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
294 </code>
a61af66fc99e Initial load
duke
parents:
diff changeset
295 <xsl:text> elements </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
296 </xsl:if>
a61af66fc99e Initial load
duke
parents:
diff changeset
297 <xsl:text>of </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
298 <code>
a61af66fc99e Initial load
duke
parents:
diff changeset
299 <xsl:apply-templates select="child::*[position()=1]" mode="signature"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
300 </code>
a61af66fc99e Initial load
duke
parents:
diff changeset
301 <xsl:text>. The incoming values of the elements of the array are ignored. </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
302 <xsl:text>On return, </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
303 <xsl:if test="count(@outcount)=1 and @outcount!=''">
a61af66fc99e Initial load
duke
parents:
diff changeset
304 <code>
a61af66fc99e Initial load
duke
parents:
diff changeset
305 <xsl:text>*</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
306 <xsl:value-of select="@outcount"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
307 </code>
a61af66fc99e Initial load
duke
parents:
diff changeset
308 <xsl:text> of </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
309 </xsl:if>
a61af66fc99e Initial load
duke
parents:
diff changeset
310 <xsl:text>the elements are set. </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
311 <xsl:apply-templates select="nullok" mode="funcdescription"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
312 <xsl:apply-templates select="child::*[position()=1]" mode="returndescription">
a61af66fc99e Initial load
duke
parents:
diff changeset
313 <xsl:with-param name="plural" select="'plural'"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
314 </xsl:apply-templates>
a61af66fc99e Initial load
duke
parents:
diff changeset
315 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
316
a61af66fc99e Initial load
duke
parents:
diff changeset
317 <xsl:template match="agentbuf" mode="funcdescription">
a61af66fc99e Initial load
duke
parents:
diff changeset
318 <p/>
a61af66fc99e Initial load
duke
parents:
diff changeset
319 <xsl:apply-templates select="nullok" mode="funcdescription"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
320 <xsl:apply-templates select="child::*[position()=1]" mode="returndescription">
a61af66fc99e Initial load
duke
parents:
diff changeset
321 <xsl:with-param name="plural" select="'plural'"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
322 </xsl:apply-templates>
a61af66fc99e Initial load
duke
parents:
diff changeset
323 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
324
a61af66fc99e Initial load
duke
parents:
diff changeset
325 <xsl:template match="jmethodID|jfieldID|jframeID|jrawMonitorID|jclass|jobject|jvalue|jthreadGroup|enum|jint|jchar|jlong|jfloat|jdouble|jlocation|jboolean|char|uchar|size_t|void|varargs|struct" mode="funcdescription">
a61af66fc99e Initial load
duke
parents:
diff changeset
326 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
327
a61af66fc99e Initial load
duke
parents:
diff changeset
328 <xsl:template match="jthread" mode="funcdescription">
a61af66fc99e Initial load
duke
parents:
diff changeset
329 <xsl:if test="count(@null)!=0">
a61af66fc99e Initial load
duke
parents:
diff changeset
330 If
a61af66fc99e Initial load
duke
parents:
diff changeset
331 <code>
a61af66fc99e Initial load
duke
parents:
diff changeset
332 <xsl:value-of select="../@id"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
333 </code>
a61af66fc99e Initial load
duke
parents:
diff changeset
334 is
a61af66fc99e Initial load
duke
parents:
diff changeset
335 <code>NULL</code>, the current thread is used.
a61af66fc99e Initial load
duke
parents:
diff changeset
336 </xsl:if>
a61af66fc99e Initial load
duke
parents:
diff changeset
337 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
338
a61af66fc99e Initial load
duke
parents:
diff changeset
339 <xsl:template match="jmethodID|jfieldID|jframeID|jrawMonitorID|enum|jint|jchar|jlong|jfloat|jdouble|jlocation|jboolean|char|uchar|size_t|void|varargs" mode="returndescription">
a61af66fc99e Initial load
duke
parents:
diff changeset
340 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
341
a61af66fc99e Initial load
duke
parents:
diff changeset
342 <xsl:template match="struct" mode="returndescription">
a61af66fc99e Initial load
duke
parents:
diff changeset
343 <xsl:param name="plural"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
344 <xsl:variable name="structname" select="."/>
a61af66fc99e Initial load
duke
parents:
diff changeset
345 <xsl:for-each select="//typedef[@id=$structname]|//uniontypedef[@id=$structname]">
a61af66fc99e Initial load
duke
parents:
diff changeset
346 <xsl:for-each select="field">
a61af66fc99e Initial load
duke
parents:
diff changeset
347 <xsl:apply-templates select="child::*[position()=1]" mode="fieldreturndescription">
a61af66fc99e Initial load
duke
parents:
diff changeset
348 <xsl:with-param name="plural" select="$plural"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
349 </xsl:apply-templates>
a61af66fc99e Initial load
duke
parents:
diff changeset
350 </xsl:for-each>
a61af66fc99e Initial load
duke
parents:
diff changeset
351 </xsl:for-each>
a61af66fc99e Initial load
duke
parents:
diff changeset
352 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
353
a61af66fc99e Initial load
duke
parents:
diff changeset
354 <xsl:template match="jclass|jthread|jobject|jvalue|jthreadGroup" mode="returndescription">
a61af66fc99e Initial load
duke
parents:
diff changeset
355 <xsl:param name="plural"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
356 <xsl:text>The object</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
357 <xsl:if test="$plural='plural'">
a61af66fc99e Initial load
duke
parents:
diff changeset
358 <xsl:text>s</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
359 </xsl:if>
a61af66fc99e Initial load
duke
parents:
diff changeset
360 <xsl:text> returned by </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
361 <code>
a61af66fc99e Initial load
duke
parents:
diff changeset
362 <xsl:value-of select="../../@id"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
363 </code>
a61af66fc99e Initial load
duke
parents:
diff changeset
364 <xsl:choose>
a61af66fc99e Initial load
duke
parents:
diff changeset
365 <xsl:when test="$plural='plural'">
a61af66fc99e Initial load
duke
parents:
diff changeset
366 <xsl:text> are JNI local references and must be </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
367 </xsl:when>
a61af66fc99e Initial load
duke
parents:
diff changeset
368 <xsl:otherwise>
a61af66fc99e Initial load
duke
parents:
diff changeset
369 <xsl:text> is a JNI local reference and must be </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
370 </xsl:otherwise>
a61af66fc99e Initial load
duke
parents:
diff changeset
371 </xsl:choose>
a61af66fc99e Initial load
duke
parents:
diff changeset
372 <a href="#refs">managed</a>.
a61af66fc99e Initial load
duke
parents:
diff changeset
373 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
374
a61af66fc99e Initial load
duke
parents:
diff changeset
375 <xsl:template match="outptr|inptr|inbuf|agentbuf|allocbuf|allocallocbuf" mode="fieldreturndescription">
a61af66fc99e Initial load
duke
parents:
diff changeset
376 <xsl:variable name="field" select="ancestor::field"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
377 <xsl:message terminate="yes">
a61af66fc99e Initial load
duke
parents:
diff changeset
378 outptr, allocallocbuf, outbuf, vmbuf, allocbuf, inptr, inbuf or agentbuf as type of returned field:
a61af66fc99e Initial load
duke
parents:
diff changeset
379 <xsl:value-of select="$field/@id"/> of <xsl:value-of select="$field/../@id"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
380 </xsl:message>
a61af66fc99e Initial load
duke
parents:
diff changeset
381 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
382
a61af66fc99e Initial load
duke
parents:
diff changeset
383 <xsl:template match="outbuf" mode="fieldreturndescription">
a61af66fc99e Initial load
duke
parents:
diff changeset
384 <!-- hand document this special case.
a61af66fc99e Initial load
duke
parents:
diff changeset
385 -->
a61af66fc99e Initial load
duke
parents:
diff changeset
386 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
387
a61af66fc99e Initial load
duke
parents:
diff changeset
388 <xsl:template match="struct" mode="fieldreturndescription">
a61af66fc99e Initial load
duke
parents:
diff changeset
389 <xsl:param name="plural"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
390 <xsl:variable name="structname" select="."/>
a61af66fc99e Initial load
duke
parents:
diff changeset
391 <xsl:for-each select="//typedef[@id=$structname]|//uniontypedef[@id=$structname]">
a61af66fc99e Initial load
duke
parents:
diff changeset
392 <xsl:for-each select="field">
a61af66fc99e Initial load
duke
parents:
diff changeset
393 <xsl:apply-templates select="child::*[position()=1]" mode="fieldreturndescription">
a61af66fc99e Initial load
duke
parents:
diff changeset
394 <xsl:with-param name="plural" select="$plural"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
395 </xsl:apply-templates>
a61af66fc99e Initial load
duke
parents:
diff changeset
396 </xsl:for-each>
a61af66fc99e Initial load
duke
parents:
diff changeset
397 </xsl:for-each>
a61af66fc99e Initial load
duke
parents:
diff changeset
398 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
399
a61af66fc99e Initial load
duke
parents:
diff changeset
400 <xsl:template match="allocfieldbuf" mode="fieldreturndescription">
a61af66fc99e Initial load
duke
parents:
diff changeset
401 <xsl:param name="plural"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
402 <xsl:variable name="field" select="ancestor::field"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
403 <xsl:text>The pointer</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
404 <xsl:if test="$plural='plural'">
a61af66fc99e Initial load
duke
parents:
diff changeset
405 <xsl:text>s</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
406 </xsl:if>
a61af66fc99e Initial load
duke
parents:
diff changeset
407 <xsl:text> returned in the field </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
408 <code>
a61af66fc99e Initial load
duke
parents:
diff changeset
409 <xsl:value-of select="$field/@id"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
410 </code>
a61af66fc99e Initial load
duke
parents:
diff changeset
411 <xsl:text> of </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
412 <code>
a61af66fc99e Initial load
duke
parents:
diff changeset
413 <xsl:value-of select="$field/../@id"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
414 </code>
a61af66fc99e Initial load
duke
parents:
diff changeset
415 <xsl:choose>
a61af66fc99e Initial load
duke
parents:
diff changeset
416 <xsl:when test="$plural='plural'">
a61af66fc99e Initial load
duke
parents:
diff changeset
417 <xsl:text> are newly allocated arrays. The arrays</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
418 </xsl:when>
a61af66fc99e Initial load
duke
parents:
diff changeset
419 <xsl:otherwise>
a61af66fc99e Initial load
duke
parents:
diff changeset
420 <xsl:text> is a newly allocated array. The array</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
421 </xsl:otherwise>
a61af66fc99e Initial load
duke
parents:
diff changeset
422 </xsl:choose>
a61af66fc99e Initial load
duke
parents:
diff changeset
423 <xsl:text> should be freed with </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
424 <a href="#Deallocate"><code>Deallocate</code></a>
a61af66fc99e Initial load
duke
parents:
diff changeset
425 <xsl:text>. </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
426
a61af66fc99e Initial load
duke
parents:
diff changeset
427 <xsl:apply-templates select="child::*[position()=1]" mode="fieldreturndescription">
a61af66fc99e Initial load
duke
parents:
diff changeset
428 <xsl:with-param name="plural" select="'plural'"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
429 </xsl:apply-templates>
a61af66fc99e Initial load
duke
parents:
diff changeset
430 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
431
a61af66fc99e Initial load
duke
parents:
diff changeset
432 <xsl:template match="ptrtype|vmbuf|jmethodID|jfieldID|jframeID|jrawMonitorID|enum|jint|jchar|jlong|jfloat|jdouble|jlocation|jboolean|char|uchar|size_t|void" mode="fieldreturndescription">
a61af66fc99e Initial load
duke
parents:
diff changeset
433 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
434
a61af66fc99e Initial load
duke
parents:
diff changeset
435 <xsl:template match="jclass|jthread|jobject|jvalue|jthreadGroup" mode="fieldreturndescription">
a61af66fc99e Initial load
duke
parents:
diff changeset
436 <xsl:param name="plural"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
437 <xsl:variable name="field" select="ancestor::field"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
438 <xsl:text>The object</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
439 <xsl:if test="$plural='plural'">
a61af66fc99e Initial load
duke
parents:
diff changeset
440 <xsl:text>s</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
441 </xsl:if>
a61af66fc99e Initial load
duke
parents:
diff changeset
442 <xsl:text> returned in the field </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
443 <code>
a61af66fc99e Initial load
duke
parents:
diff changeset
444 <xsl:value-of select="$field/@id"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
445 </code>
a61af66fc99e Initial load
duke
parents:
diff changeset
446 <xsl:text> of </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
447 <code>
a61af66fc99e Initial load
duke
parents:
diff changeset
448 <xsl:value-of select="$field/../@id"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
449 </code>
a61af66fc99e Initial load
duke
parents:
diff changeset
450 <xsl:choose>
a61af66fc99e Initial load
duke
parents:
diff changeset
451 <xsl:when test="$plural='plural'">
a61af66fc99e Initial load
duke
parents:
diff changeset
452 <xsl:text> are JNI local references and must be </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
453 </xsl:when>
a61af66fc99e Initial load
duke
parents:
diff changeset
454 <xsl:otherwise>
a61af66fc99e Initial load
duke
parents:
diff changeset
455 <xsl:text> is a JNI local reference and must be </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
456 </xsl:otherwise>
a61af66fc99e Initial load
duke
parents:
diff changeset
457 </xsl:choose>
a61af66fc99e Initial load
duke
parents:
diff changeset
458 <a href="#refs">managed</a>.
a61af66fc99e Initial load
duke
parents:
diff changeset
459 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
460
a61af66fc99e Initial load
duke
parents:
diff changeset
461 <xsl:template match="nullok" mode="signature">
a61af66fc99e Initial load
duke
parents:
diff changeset
462 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
463
a61af66fc99e Initial load
duke
parents:
diff changeset
464 <xsl:template match="jmethodID|jfieldID|jrawMonitorID|jclass|jthread|jobject|jvalue|jthreadGroup|jint|jchar|jlong|jfloat|jdouble|jlocation|jboolean|char|size_t|void" mode="signature">
a61af66fc99e Initial load
duke
parents:
diff changeset
465 <xsl:value-of select="name()"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
466 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
467
a61af66fc99e Initial load
duke
parents:
diff changeset
468 <xsl:template match="jframeID" mode="signature">
a61af66fc99e Initial load
duke
parents:
diff changeset
469 <xsl:text>jint</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
470 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
471
a61af66fc99e Initial load
duke
parents:
diff changeset
472 <xsl:template match="uchar" mode="signature">
a61af66fc99e Initial load
duke
parents:
diff changeset
473 <xsl:text>unsigned char</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
474 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
475
a61af66fc99e Initial load
duke
parents:
diff changeset
476 <xsl:template match="enum|struct" mode="signature">
a61af66fc99e Initial load
duke
parents:
diff changeset
477 <xsl:value-of select="."/>
a61af66fc99e Initial load
duke
parents:
diff changeset
478 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
479
a61af66fc99e Initial load
duke
parents:
diff changeset
480 <xsl:template match="varargs" mode="signature">
a61af66fc99e Initial load
duke
parents:
diff changeset
481 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
482
a61af66fc99e Initial load
duke
parents:
diff changeset
483 <xsl:template match="outptr|outbuf|allocfieldbuf" mode="signature">
a61af66fc99e Initial load
duke
parents:
diff changeset
484 <xsl:apply-templates select="child::*[position()=1]" mode="signature"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
485 <xsl:text>*</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
486 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
487
a61af66fc99e Initial load
duke
parents:
diff changeset
488 <xsl:template match="ptrtype" mode="signature">
a61af66fc99e Initial load
duke
parents:
diff changeset
489 <xsl:apply-templates select="child::*[position()=1]" mode="signature"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
490 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
491
a61af66fc99e Initial load
duke
parents:
diff changeset
492 <xsl:template match="inptr|inbuf|vmbuf" mode="signature">
a61af66fc99e Initial load
duke
parents:
diff changeset
493 <xsl:text>const </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
494 <xsl:apply-templates select="child::*[position()=1]" mode="signature"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
495 <xsl:text>*</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
496 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
497
a61af66fc99e Initial load
duke
parents:
diff changeset
498 <xsl:template match="allocbuf|agentbuf" mode="signature">
a61af66fc99e Initial load
duke
parents:
diff changeset
499 <xsl:apply-templates select="child::*[position()=1]" mode="signature"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
500 <xsl:text>**</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
501 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
502
a61af66fc99e Initial load
duke
parents:
diff changeset
503 <xsl:template match="allocallocbuf" mode="signature">
a61af66fc99e Initial load
duke
parents:
diff changeset
504 <xsl:apply-templates select="child::*[position()=1]" mode="signature"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
505 <xsl:text>***</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
506 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
507
a61af66fc99e Initial load
duke
parents:
diff changeset
508 <xsl:template match="nullok" mode="link">
a61af66fc99e Initial load
duke
parents:
diff changeset
509 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
510
a61af66fc99e Initial load
duke
parents:
diff changeset
511 <xsl:template match="jmethodID|jfieldID|jrawMonitorID|jclass|jthread|jobject|jvalue|jint|jchar|jlong|jfloat|jdouble|jlocation|jboolean|jthreadGroup" mode="link">
a61af66fc99e Initial load
duke
parents:
diff changeset
512 <a>
a61af66fc99e Initial load
duke
parents:
diff changeset
513 <xsl:attribute name="href">
a61af66fc99e Initial load
duke
parents:
diff changeset
514 <xsl:text>#</xsl:text><xsl:value-of select="name()"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
515 </xsl:attribute>
a61af66fc99e Initial load
duke
parents:
diff changeset
516 <xsl:value-of select="name()"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
517 </a>
a61af66fc99e Initial load
duke
parents:
diff changeset
518 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
519
a61af66fc99e Initial load
duke
parents:
diff changeset
520 <xsl:template match="jframeID" mode="link">
a61af66fc99e Initial load
duke
parents:
diff changeset
521 <a>
a61af66fc99e Initial load
duke
parents:
diff changeset
522 <xsl:attribute name="href">
a61af66fc99e Initial load
duke
parents:
diff changeset
523 <xsl:text>#jint</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
524 </xsl:attribute>
a61af66fc99e Initial load
duke
parents:
diff changeset
525 <xsl:text>jint</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
526 </a>
a61af66fc99e Initial load
duke
parents:
diff changeset
527 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
528
a61af66fc99e Initial load
duke
parents:
diff changeset
529 <xsl:template match="enum|struct" mode="link">
a61af66fc99e Initial load
duke
parents:
diff changeset
530 <a>
a61af66fc99e Initial load
duke
parents:
diff changeset
531 <xsl:attribute name="href">
a61af66fc99e Initial load
duke
parents:
diff changeset
532 <xsl:text>#</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
533 <xsl:value-of select="."/>
a61af66fc99e Initial load
duke
parents:
diff changeset
534 </xsl:attribute>
a61af66fc99e Initial load
duke
parents:
diff changeset
535 <xsl:value-of select="."/>
a61af66fc99e Initial load
duke
parents:
diff changeset
536 </a>
a61af66fc99e Initial load
duke
parents:
diff changeset
537 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
538
a61af66fc99e Initial load
duke
parents:
diff changeset
539 <xsl:template match="char|size_t|void" mode="link">
a61af66fc99e Initial load
duke
parents:
diff changeset
540 <xsl:value-of select="name()"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
541 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
542
a61af66fc99e Initial load
duke
parents:
diff changeset
543 <xsl:template match="uchar" mode="link">
a61af66fc99e Initial load
duke
parents:
diff changeset
544 <xsl:text>unsigned char</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
545 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
546
a61af66fc99e Initial load
duke
parents:
diff changeset
547 <xsl:template match="varargs" mode="link">
a61af66fc99e Initial load
duke
parents:
diff changeset
548 <xsl:text>...</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
549 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
550
a61af66fc99e Initial load
duke
parents:
diff changeset
551 <xsl:template match="ptrtype" mode="link">
a61af66fc99e Initial load
duke
parents:
diff changeset
552 <xsl:apply-templates mode="link"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
553 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
554
a61af66fc99e Initial load
duke
parents:
diff changeset
555 <xsl:template match="outptr|outbuf|allocfieldbuf" mode="link">
a61af66fc99e Initial load
duke
parents:
diff changeset
556 <xsl:apply-templates mode="link"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
557 <xsl:text>*</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
558 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
559
a61af66fc99e Initial load
duke
parents:
diff changeset
560 <xsl:template match="inptr|inbuf|vmbuf" mode="link">
a61af66fc99e Initial load
duke
parents:
diff changeset
561 <xsl:text>const </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
562 <xsl:apply-templates mode="link"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
563 <xsl:text>*</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
564 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
565
a61af66fc99e Initial load
duke
parents:
diff changeset
566 <xsl:template match="allocbuf|agentbuf" mode="link">
a61af66fc99e Initial load
duke
parents:
diff changeset
567 <xsl:apply-templates mode="link"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
568 <xsl:text>**</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
569 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
570
a61af66fc99e Initial load
duke
parents:
diff changeset
571 <xsl:template match="allocallocbuf" mode="link">
a61af66fc99e Initial load
duke
parents:
diff changeset
572 <xsl:apply-templates mode="link"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
573 <xsl:text>***</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
574 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
575
a61af66fc99e Initial load
duke
parents:
diff changeset
576 <xsl:template match="jmethodID|jfieldID|jframeID|jrawMonitorID|jclass|jobject|jvalue|jthreadGroup|jthread|jint|jchar|jlong|jfloat|jdouble|jlocation|jboolean|char|size_t|void" mode="btsig">
a61af66fc99e Initial load
duke
parents:
diff changeset
577 <xsl:value-of select="name()"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
578 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
579
a61af66fc99e Initial load
duke
parents:
diff changeset
580 <xsl:template match="uchar" mode="btsig">
a61af66fc99e Initial load
duke
parents:
diff changeset
581 <xsl:text>unsigned char</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
582 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
583
a61af66fc99e Initial load
duke
parents:
diff changeset
584 <xsl:template match="enum|struct" mode="btsig">
a61af66fc99e Initial load
duke
parents:
diff changeset
585 <xsl:value-of select="."/>
a61af66fc99e Initial load
duke
parents:
diff changeset
586 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
587
a61af66fc99e Initial load
duke
parents:
diff changeset
588 <xsl:template match="outbuf" mode="btsig">
a61af66fc99e Initial load
duke
parents:
diff changeset
589 <xsl:apply-templates select="child::*[position()=1]" mode="btsig"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
590 <xsl:text>*</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
591 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
592
a61af66fc99e Initial load
duke
parents:
diff changeset
593 <xsl:template name="gentypedef">
a61af66fc99e Initial load
duke
parents:
diff changeset
594 <xsl:param name="tdef"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
595 <xsl:text>typedef struct {
a61af66fc99e Initial load
duke
parents:
diff changeset
596 </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
597 <xsl:apply-templates select="$tdef/field" mode="signature"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
598 <xsl:text>} </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
599 <xsl:value-of select="$tdef/@id"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
600 <xsl:text>;</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
601 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
602
a61af66fc99e Initial load
duke
parents:
diff changeset
603 <xsl:template name="genuniontypedef">
a61af66fc99e Initial load
duke
parents:
diff changeset
604 <xsl:param name="tdef"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
605 <xsl:text>typedef union {
a61af66fc99e Initial load
duke
parents:
diff changeset
606 </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
607 <xsl:apply-templates select="$tdef/field" mode="signature"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
608 <xsl:text>} </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
609 <xsl:value-of select="$tdef/@id"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
610 <xsl:text>;</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
611 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
612
a61af66fc99e Initial load
duke
parents:
diff changeset
613
a61af66fc99e Initial load
duke
parents:
diff changeset
614 <xsl:template match="capabilitiestypedef" mode="genstruct">
a61af66fc99e Initial load
duke
parents:
diff changeset
615 <xsl:variable name="caps" select="count(capabilityfield)"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
616 <xsl:text>typedef struct {
a61af66fc99e Initial load
duke
parents:
diff changeset
617 </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
618 <xsl:apply-templates select="capabilityfield" mode="signature"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
619 <xsl:variable name="rem" select="$caps mod 16"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
620 <xsl:if test="$rem != 0">
a61af66fc99e Initial load
duke
parents:
diff changeset
621 <xsl:text> unsigned int : </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
622 <xsl:value-of select="16 - $rem"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
623 <xsl:text>;
a61af66fc99e Initial load
duke
parents:
diff changeset
624 </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
625 </xsl:if>
a61af66fc99e Initial load
duke
parents:
diff changeset
626 <xsl:if test="$caps &lt;= 32">
a61af66fc99e Initial load
duke
parents:
diff changeset
627 <xsl:text> unsigned int : 16;
a61af66fc99e Initial load
duke
parents:
diff changeset
628 </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
629 </xsl:if>
a61af66fc99e Initial load
duke
parents:
diff changeset
630 <xsl:if test="$caps &lt;= 48">
a61af66fc99e Initial load
duke
parents:
diff changeset
631 <xsl:text> unsigned int : 16;
a61af66fc99e Initial load
duke
parents:
diff changeset
632 </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
633 </xsl:if>
a61af66fc99e Initial load
duke
parents:
diff changeset
634 <xsl:if test="$caps &lt;= 64">
a61af66fc99e Initial load
duke
parents:
diff changeset
635 <xsl:text> unsigned int : 16;
a61af66fc99e Initial load
duke
parents:
diff changeset
636 </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
637 </xsl:if>
a61af66fc99e Initial load
duke
parents:
diff changeset
638 <xsl:if test="$caps &lt;= 80">
a61af66fc99e Initial load
duke
parents:
diff changeset
639 <xsl:text> unsigned int : 16;
a61af66fc99e Initial load
duke
parents:
diff changeset
640 </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
641 </xsl:if>
a61af66fc99e Initial load
duke
parents:
diff changeset
642 <xsl:if test="$caps &lt;= 96">
a61af66fc99e Initial load
duke
parents:
diff changeset
643 <xsl:text> unsigned int : 16;
a61af66fc99e Initial load
duke
parents:
diff changeset
644 </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
645 </xsl:if>
a61af66fc99e Initial load
duke
parents:
diff changeset
646 <xsl:if test="$caps &lt;= 112">
a61af66fc99e Initial load
duke
parents:
diff changeset
647 <xsl:text> unsigned int : 16;
a61af66fc99e Initial load
duke
parents:
diff changeset
648 </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
649 </xsl:if>
a61af66fc99e Initial load
duke
parents:
diff changeset
650 <xsl:text>} </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
651 <xsl:value-of select="@id"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
652 <xsl:text>;</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
653 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
654
a61af66fc99e Initial load
duke
parents:
diff changeset
655 <xsl:template match="capabilityfield" mode="signature">
a61af66fc99e Initial load
duke
parents:
diff changeset
656 <xsl:text> unsigned int </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
657 <xsl:value-of select="@id"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
658 <xsl:text> : 1;
a61af66fc99e Initial load
duke
parents:
diff changeset
659 </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
660 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
661
a61af66fc99e Initial load
duke
parents:
diff changeset
662 <xsl:template match="constants" mode="enum">
a61af66fc99e Initial load
duke
parents:
diff changeset
663 <xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
664 typedef </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
665 <xsl:apply-templates select="." mode="enumcore"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
666 <xsl:text> </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
667 <xsl:value-of select="@id"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
668 <xsl:text>;</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
669 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
670
a61af66fc99e Initial load
duke
parents:
diff changeset
671 <xsl:template match="constants" mode="constants">
a61af66fc99e Initial load
duke
parents:
diff changeset
672 <xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
673 </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
674 <xsl:apply-templates select="." mode="enumcore"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
675 <xsl:text>;</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
676 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
677
a61af66fc99e Initial load
duke
parents:
diff changeset
678 <xsl:template match="constants" mode="enumcore">
a61af66fc99e Initial load
duke
parents:
diff changeset
679 <xsl:text>enum {
a61af66fc99e Initial load
duke
parents:
diff changeset
680 </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
681 <xsl:for-each select="constant">
a61af66fc99e Initial load
duke
parents:
diff changeset
682 <xsl:if test="position() &gt; 1">
a61af66fc99e Initial load
duke
parents:
diff changeset
683 <xsl:text>,
a61af66fc99e Initial load
duke
parents:
diff changeset
684 </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
685 </xsl:if>
a61af66fc99e Initial load
duke
parents:
diff changeset
686 <xsl:apply-templates select="." mode="enum"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
687 </xsl:for-each>
a61af66fc99e Initial load
duke
parents:
diff changeset
688 <xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
689 }</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
690 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
691
a61af66fc99e Initial load
duke
parents:
diff changeset
692 <xsl:template match="event" mode="enum">
a61af66fc99e Initial load
duke
parents:
diff changeset
693 <xsl:text> </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
694 <xsl:value-of select="@const"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
695 <xsl:text> = </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
696 <xsl:value-of select="@num"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
697 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
698
a61af66fc99e Initial load
duke
parents:
diff changeset
699 <xsl:template match="constant|errorid" mode="enum">
a61af66fc99e Initial load
duke
parents:
diff changeset
700 <xsl:text> </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
701 <xsl:value-of select="@id"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
702 <xsl:text> = </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
703 <xsl:value-of select="@num"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
704 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
705
a61af66fc99e Initial load
duke
parents:
diff changeset
706
a61af66fc99e Initial load
duke
parents:
diff changeset
707 <xsl:template name="eventStruct">
a61af66fc99e Initial load
duke
parents:
diff changeset
708 <xsl:param name="events"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
709 <xsl:param name="index"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
710 <xsl:param name="started"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
711 <xsl:param name="comment"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
712 <xsl:variable name="thisEvent" select="$events[@num=$index]"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
713 <xsl:choose>
a61af66fc99e Initial load
duke
parents:
diff changeset
714 <xsl:when test="count($thisEvent)=1">
a61af66fc99e Initial load
duke
parents:
diff changeset
715 <xsl:if test="$comment='Yes'">
a61af66fc99e Initial load
duke
parents:
diff changeset
716 <xsl:text> /* </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
717 <xsl:number value="$index" format=" 1"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
718 <xsl:text> : </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
719 <xsl:value-of select="$thisEvent/@label"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
720 <xsl:text> */
a61af66fc99e Initial load
duke
parents:
diff changeset
721 </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
722 </xsl:if>
a61af66fc99e Initial load
duke
parents:
diff changeset
723 <xsl:text> jvmtiEvent</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
724 <xsl:value-of select="$thisEvent/@id"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
725 <xsl:text> </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
726 <xsl:value-of select="$thisEvent/@id"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
727 <xsl:text>;
a61af66fc99e Initial load
duke
parents:
diff changeset
728 </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
729 </xsl:when>
a61af66fc99e Initial load
duke
parents:
diff changeset
730 <xsl:otherwise>
a61af66fc99e Initial load
duke
parents:
diff changeset
731 <xsl:if test="$started">
a61af66fc99e Initial load
duke
parents:
diff changeset
732 <xsl:if test="$comment='Yes'">
a61af66fc99e Initial load
duke
parents:
diff changeset
733 <xsl:text> /* </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
734 <xsl:number value="$index" format=" 1"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
735 <xsl:text> */
a61af66fc99e Initial load
duke
parents:
diff changeset
736 </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
737 </xsl:if>
a61af66fc99e Initial load
duke
parents:
diff changeset
738 <xsl:text> jvmtiEventReserved reserved</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
739 <xsl:value-of select="$index"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
740 <xsl:text>;
a61af66fc99e Initial load
duke
parents:
diff changeset
741 </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
742 </xsl:if>
a61af66fc99e Initial load
duke
parents:
diff changeset
743 </xsl:otherwise>
a61af66fc99e Initial load
duke
parents:
diff changeset
744 </xsl:choose>
a61af66fc99e Initial load
duke
parents:
diff changeset
745 <xsl:if test="count($events[@num &gt; $index]) &gt; 0">
a61af66fc99e Initial load
duke
parents:
diff changeset
746 <xsl:call-template name="eventStruct">
a61af66fc99e Initial load
duke
parents:
diff changeset
747 <xsl:with-param name="events" select="$events"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
748 <xsl:with-param name="index" select="1+$index"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
749 <xsl:with-param name="started" select="$started or count($thisEvent)=1"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
750 <xsl:with-param name="comment" select="$comment"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
751 </xsl:call-template>
a61af66fc99e Initial load
duke
parents:
diff changeset
752 </xsl:if>
a61af66fc99e Initial load
duke
parents:
diff changeset
753 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
754
a61af66fc99e Initial load
duke
parents:
diff changeset
755
a61af66fc99e Initial load
duke
parents:
diff changeset
756 <!-- ======== HotSpotType ======== -->
a61af66fc99e Initial load
duke
parents:
diff changeset
757
a61af66fc99e Initial load
duke
parents:
diff changeset
758 <xsl:template match="parameters" mode="HotSpotSig">
a61af66fc99e Initial load
duke
parents:
diff changeset
759 <xsl:variable name="length" select="count(param)"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
760 <xsl:for-each select="param">
a61af66fc99e Initial load
duke
parents:
diff changeset
761 <xsl:variable name="separator">
a61af66fc99e Initial load
duke
parents:
diff changeset
762 <xsl:choose>
a61af66fc99e Initial load
duke
parents:
diff changeset
763 <xsl:when test="position()=$length">
a61af66fc99e Initial load
duke
parents:
diff changeset
764 <xsl:text></xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
765 </xsl:when>
a61af66fc99e Initial load
duke
parents:
diff changeset
766 <xsl:otherwise>
a61af66fc99e Initial load
duke
parents:
diff changeset
767 <xsl:text>, </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
768 </xsl:otherwise>
a61af66fc99e Initial load
duke
parents:
diff changeset
769 </xsl:choose>
a61af66fc99e Initial load
duke
parents:
diff changeset
770 </xsl:variable>
a61af66fc99e Initial load
duke
parents:
diff changeset
771 <xsl:apply-templates select="." mode="HotSpotSig">
a61af66fc99e Initial load
duke
parents:
diff changeset
772 <xsl:with-param name="comma" select="$separator"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
773 </xsl:apply-templates>
a61af66fc99e Initial load
duke
parents:
diff changeset
774 </xsl:for-each>
a61af66fc99e Initial load
duke
parents:
diff changeset
775 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
776
a61af66fc99e Initial load
duke
parents:
diff changeset
777 <xsl:template match="param" mode="HotSpotSig">
a61af66fc99e Initial load
duke
parents:
diff changeset
778 <xsl:param name="comma"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
779 <xsl:variable name="result">
a61af66fc99e Initial load
duke
parents:
diff changeset
780 <xsl:apply-templates select="child::*[position()=1]" mode="HotSpotType"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
781 </xsl:variable>
a61af66fc99e Initial load
duke
parents:
diff changeset
782 <xsl:if test="string-length($result)!=0">
a61af66fc99e Initial load
duke
parents:
diff changeset
783 <xsl:value-of select="$result"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
784 <xsl:text> </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
785 <xsl:apply-templates select="child::*[position()=1]" mode="HotSpotName">
a61af66fc99e Initial load
duke
parents:
diff changeset
786 <xsl:with-param name="name" select="@id"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
787 </xsl:apply-templates>
a61af66fc99e Initial load
duke
parents:
diff changeset
788 <xsl:value-of select="$comma"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
789 </xsl:if>
a61af66fc99e Initial load
duke
parents:
diff changeset
790 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
791
a61af66fc99e Initial load
duke
parents:
diff changeset
792 <xsl:template match="jthread" mode="HotSpotType">
a61af66fc99e Initial load
duke
parents:
diff changeset
793 <xsl:choose>
a61af66fc99e Initial load
duke
parents:
diff changeset
794 <xsl:when test="count(@impl)=0 or not(contains(@impl,'noconvert'))">
a61af66fc99e Initial load
duke
parents:
diff changeset
795 <xsl:text>JavaThread*</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
796 </xsl:when>
a61af66fc99e Initial load
duke
parents:
diff changeset
797 <xsl:otherwise>
a61af66fc99e Initial load
duke
parents:
diff changeset
798 <xsl:value-of select="name()"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
799 </xsl:otherwise>
a61af66fc99e Initial load
duke
parents:
diff changeset
800 </xsl:choose>
a61af66fc99e Initial load
duke
parents:
diff changeset
801 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
802
a61af66fc99e Initial load
duke
parents:
diff changeset
803 <xsl:template match="jrawMonitorID" mode="HotSpotType">
a61af66fc99e Initial load
duke
parents:
diff changeset
804 <xsl:text>JvmtiRawMonitor *</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
805 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
806
a61af66fc99e Initial load
duke
parents:
diff changeset
807 <xsl:template match="jframeID" mode="HotSpotType">
a61af66fc99e Initial load
duke
parents:
diff changeset
808 <xsl:text>jint</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
809 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
810
a61af66fc99e Initial load
duke
parents:
diff changeset
811 <xsl:template match="jmethodID" mode="HotSpotType">
a61af66fc99e Initial load
duke
parents:
diff changeset
812 <xsl:text>methodOop</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
813 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
814
a61af66fc99e Initial load
duke
parents:
diff changeset
815 <xsl:template match="jfieldID" mode="HotSpotType">
a61af66fc99e Initial load
duke
parents:
diff changeset
816 <xsl:text>fieldDescriptor*</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
817 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
818
a61af66fc99e Initial load
duke
parents:
diff changeset
819 <xsl:template match="jclass" mode="HotSpotType">
a61af66fc99e Initial load
duke
parents:
diff changeset
820 <!--
a61af66fc99e Initial load
duke
parents:
diff changeset
821 classes passed as part of a class/method or class/field pair are used
a61af66fc99e Initial load
duke
parents:
diff changeset
822 by the wrapper to get the internal type but are not needed by nor
a61af66fc99e Initial load
duke
parents:
diff changeset
823 passed to the implementation layer.
a61af66fc99e Initial load
duke
parents:
diff changeset
824 -->
a61af66fc99e Initial load
duke
parents:
diff changeset
825 <xsl:if test="count(@method|@field)=0">
a61af66fc99e Initial load
duke
parents:
diff changeset
826 <xsl:text>oop</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
827 </xsl:if>
a61af66fc99e Initial load
duke
parents:
diff changeset
828 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
829
a61af66fc99e Initial load
duke
parents:
diff changeset
830 <xsl:template match="nullok" mode="HotSpotType">
a61af66fc99e Initial load
duke
parents:
diff changeset
831 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
832
a61af66fc99e Initial load
duke
parents:
diff changeset
833 <xsl:template match="jobject|jvalue|jthreadGroup|enum|jint|jchar|jlong|jfloat|jdouble|jlocation|jboolean|char|uchar|size_t|void|struct" mode="HotSpotType">
a61af66fc99e Initial load
duke
parents:
diff changeset
834 <xsl:apply-templates select="." mode="btsig"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
835 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
836
a61af66fc99e Initial load
duke
parents:
diff changeset
837 <xsl:template match="varargs" mode="HotSpotType">
a61af66fc99e Initial load
duke
parents:
diff changeset
838 <xsl:text> </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
839 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
840
a61af66fc99e Initial load
duke
parents:
diff changeset
841 <xsl:template match="outptr|outbuf|allocfieldbuf" mode="HotSpotType">
a61af66fc99e Initial load
duke
parents:
diff changeset
842 <xsl:apply-templates select="child::*[position()=1]" mode="btsig"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
843 <xsl:text>*</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
844 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
845
a61af66fc99e Initial load
duke
parents:
diff changeset
846 <xsl:template match="ptrtype" mode="HotSpotType">
a61af66fc99e Initial load
duke
parents:
diff changeset
847 <xsl:apply-templates select="child::*[position()=1]" mode="btsig"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
848 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
849
a61af66fc99e Initial load
duke
parents:
diff changeset
850 <xsl:template match="inptr|inbuf|vmbuf" mode="HotSpotType">
a61af66fc99e Initial load
duke
parents:
diff changeset
851 <xsl:text>const </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
852 <xsl:apply-templates select="child::*[position()=1]" mode="btsig"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
853 <xsl:text>*</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
854 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
855
a61af66fc99e Initial load
duke
parents:
diff changeset
856 <xsl:template match="allocbuf|agentbuf" mode="HotSpotType">
a61af66fc99e Initial load
duke
parents:
diff changeset
857 <xsl:apply-templates select="child::*[position()=1]" mode="btsig"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
858 <xsl:text>**</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
859 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
860
a61af66fc99e Initial load
duke
parents:
diff changeset
861 <xsl:template match="allocallocbuf" mode="HotSpotType">
a61af66fc99e Initial load
duke
parents:
diff changeset
862 <xsl:apply-templates select="child::*[position()=1]" mode="btsig"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
863 <xsl:text>***</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
864 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
865
a61af66fc99e Initial load
duke
parents:
diff changeset
866 <!-- ======== HotSpotName ======== -->
a61af66fc99e Initial load
duke
parents:
diff changeset
867
a61af66fc99e Initial load
duke
parents:
diff changeset
868 <xsl:template match="jthread" mode="HotSpotName">
a61af66fc99e Initial load
duke
parents:
diff changeset
869 <xsl:param name="name"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
870 <xsl:choose>
a61af66fc99e Initial load
duke
parents:
diff changeset
871 <xsl:when test="count(@impl)=0 or not(contains(@impl,'noconvert'))">
a61af66fc99e Initial load
duke
parents:
diff changeset
872 <xsl:text>java_thread</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
873 </xsl:when>
a61af66fc99e Initial load
duke
parents:
diff changeset
874 <xsl:otherwise>
a61af66fc99e Initial load
duke
parents:
diff changeset
875 <xsl:value-of select="$name"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
876 </xsl:otherwise>
a61af66fc99e Initial load
duke
parents:
diff changeset
877 </xsl:choose>
a61af66fc99e Initial load
duke
parents:
diff changeset
878 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
879
a61af66fc99e Initial load
duke
parents:
diff changeset
880 <xsl:template match="jrawMonitorID" mode="HotSpotName">
a61af66fc99e Initial load
duke
parents:
diff changeset
881 <xsl:text>rmonitor</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
882 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
883
a61af66fc99e Initial load
duke
parents:
diff changeset
884 <xsl:template match="jframeID" mode="HotSpotName">
a61af66fc99e Initial load
duke
parents:
diff changeset
885 <xsl:text>depth</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
886 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
887
a61af66fc99e Initial load
duke
parents:
diff changeset
888 <xsl:template match="jmethodID" mode="HotSpotName">
a61af66fc99e Initial load
duke
parents:
diff changeset
889 <xsl:text>method_oop</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
890 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
891
a61af66fc99e Initial load
duke
parents:
diff changeset
892 <xsl:template match="jfieldID" mode="HotSpotName">
a61af66fc99e Initial load
duke
parents:
diff changeset
893 <xsl:text>fdesc_ptr</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
894 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
895
a61af66fc99e Initial load
duke
parents:
diff changeset
896 <xsl:template match="jclass" mode="HotSpotName">
a61af66fc99e Initial load
duke
parents:
diff changeset
897 <!--
a61af66fc99e Initial load
duke
parents:
diff changeset
898 classes passed as part of a class/method or class/field pair are used
a61af66fc99e Initial load
duke
parents:
diff changeset
899 by the wrapper to get the internal type but are not needed by nor
a61af66fc99e Initial load
duke
parents:
diff changeset
900 passed to the implementation layer. This value is checked for empty.
a61af66fc99e Initial load
duke
parents:
diff changeset
901 -->
a61af66fc99e Initial load
duke
parents:
diff changeset
902 <xsl:if test="count(@method|@field)=0">
a61af66fc99e Initial load
duke
parents:
diff changeset
903 <xsl:text>k_mirror</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
904 </xsl:if>
a61af66fc99e Initial load
duke
parents:
diff changeset
905 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
906
a61af66fc99e Initial load
duke
parents:
diff changeset
907 <xsl:template match="nullok" mode="HotSpotName">
a61af66fc99e Initial load
duke
parents:
diff changeset
908 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
909
a61af66fc99e Initial load
duke
parents:
diff changeset
910 <xsl:template match="jobject|jvalue|jthreadGroup|enum|jint|jchar|jlong|jfloat|jdouble|jlocation|jboolean|char|uchar|size_t|void|varargs|struct|outptr|outbuf|allocfieldbuf|ptrtype|inptr|inbuf|vmbuf|allocbuf|agentbuf|allocallocbuf" mode="HotSpotName">
a61af66fc99e Initial load
duke
parents:
diff changeset
911 <xsl:param name="name"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
912 <xsl:value-of select="$name"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
913 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
914
a61af66fc99e Initial load
duke
parents:
diff changeset
915 <!-- ======== HotSpotValue ======== -->
a61af66fc99e Initial load
duke
parents:
diff changeset
916
a61af66fc99e Initial load
duke
parents:
diff changeset
917
a61af66fc99e Initial load
duke
parents:
diff changeset
918 <xsl:template match="parameters" mode="HotSpotValue">
a61af66fc99e Initial load
duke
parents:
diff changeset
919 <xsl:variable name="length" select="count(param)"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
920 <xsl:for-each select="param">
a61af66fc99e Initial load
duke
parents:
diff changeset
921 <xsl:variable name="separator">
a61af66fc99e Initial load
duke
parents:
diff changeset
922 <xsl:choose>
a61af66fc99e Initial load
duke
parents:
diff changeset
923 <xsl:when test="position()=$length">
a61af66fc99e Initial load
duke
parents:
diff changeset
924 <xsl:text></xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
925 </xsl:when>
a61af66fc99e Initial load
duke
parents:
diff changeset
926 <xsl:otherwise>
a61af66fc99e Initial load
duke
parents:
diff changeset
927 <xsl:text>, </xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
928 </xsl:otherwise>
a61af66fc99e Initial load
duke
parents:
diff changeset
929 </xsl:choose>
a61af66fc99e Initial load
duke
parents:
diff changeset
930 </xsl:variable>
a61af66fc99e Initial load
duke
parents:
diff changeset
931 <xsl:apply-templates select="." mode="HotSpotValue">
a61af66fc99e Initial load
duke
parents:
diff changeset
932 <xsl:with-param name="comma" select="$separator"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
933 </xsl:apply-templates>
a61af66fc99e Initial load
duke
parents:
diff changeset
934 </xsl:for-each>
a61af66fc99e Initial load
duke
parents:
diff changeset
935 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
936
a61af66fc99e Initial load
duke
parents:
diff changeset
937 <xsl:template match="param" mode="HotSpotValue">
a61af66fc99e Initial load
duke
parents:
diff changeset
938 <xsl:param name="comma"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
939 <xsl:variable name="result">
a61af66fc99e Initial load
duke
parents:
diff changeset
940 <xsl:apply-templates select="child::*[position()=1]" mode="HotSpotValue">
a61af66fc99e Initial load
duke
parents:
diff changeset
941 <xsl:with-param name="name" select="@id"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
942 </xsl:apply-templates>
a61af66fc99e Initial load
duke
parents:
diff changeset
943 </xsl:variable>
a61af66fc99e Initial load
duke
parents:
diff changeset
944 <xsl:if test="string-length($result)!=0">
a61af66fc99e Initial load
duke
parents:
diff changeset
945 <xsl:value-of select="$result"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
946 <xsl:value-of select="$comma"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
947 </xsl:if>
a61af66fc99e Initial load
duke
parents:
diff changeset
948 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
949
a61af66fc99e Initial load
duke
parents:
diff changeset
950 <xsl:template match="jframeID|jmethodID|jrawMonitorID|jthread|jclass|nullok" mode="HotSpotValue">
a61af66fc99e Initial load
duke
parents:
diff changeset
951 <xsl:param name="name"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
952 <xsl:apply-templates select="." mode="HotSpotName">
a61af66fc99e Initial load
duke
parents:
diff changeset
953 <xsl:with-param name="name" select="$name"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
954 </xsl:apply-templates>
a61af66fc99e Initial load
duke
parents:
diff changeset
955 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
956
a61af66fc99e Initial load
duke
parents:
diff changeset
957 <xsl:template match="jfieldID" mode="HotSpotValue">
a61af66fc99e Initial load
duke
parents:
diff changeset
958 <xsl:text>&amp;fdesc</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
959 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
960
a61af66fc99e Initial load
duke
parents:
diff changeset
961 <xsl:template match="jobject|jvalue|jthreadGroup|enum|jint|jchar|jlong|jfloat|jdouble|jlocation|jboolean|char|uchar|size_t|void|struct|outptr|outbuf|allocfieldbuf|ptrtype|inptr|inbuf|vmbuf|allocbuf|agentbuf|allocallocbuf" mode="HotSpotValue">
a61af66fc99e Initial load
duke
parents:
diff changeset
962 <xsl:param name="name"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
963 <xsl:value-of select="$name"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
964 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
965
a61af66fc99e Initial load
duke
parents:
diff changeset
966 <xsl:template match="varargs" mode="HotSpotValue">
a61af66fc99e Initial load
duke
parents:
diff changeset
967 <xsl:text>NULL</xsl:text>
a61af66fc99e Initial load
duke
parents:
diff changeset
968 </xsl:template>
a61af66fc99e Initial load
duke
parents:
diff changeset
969
a61af66fc99e Initial load
duke
parents:
diff changeset
970 </xsl:stylesheet>
a61af66fc99e Initial load
duke
parents:
diff changeset
971