< prev index next >

src/hotspot/share/trace/traceEventClasses.xsl

Print this page
rev 49465 : 8200246 : AIX build fails after adjustments of src/hotspot/share/trace/traceEventClasses.xsl


 126 
 127  public:
 128 <xsl:apply-templates select="value|structvalue|transition_value|relation" mode="write-setters"/>
 129 
 130   bool should_write(void) {
 131     return true;
 132   }
 133 <xsl:text>
 134 
 135 </xsl:text>
 136   <xsl:value-of select="concat('  Event', @id, '(EventStartTime timing=TIMED) : TraceEvent&lt;Event', @id, '&gt;(timing) {}', $newline)"/>
 137   void writeEvent(void) {
 138     if (UseLockedTracing) {
 139       ttyLocker lock;
 140       writeEventContent();
 141     } else {
 142       writeEventContent();
 143     }
 144   }
 145 
 146   using TraceEvent::commit; // else commit() is hidden by overloaded versions in this class

 147 <xsl:variable name="instant" select="@is_instant"/>
 148 <!-- non static method (only for non instant events)-->
 149 <xsl:if test="$instant='false'">
 150   <xsl:value-of select="concat('  Event', @id)"/>(
 151     <xsl:for-each select="value|structvalue|transition_value|relation">
 152     <xsl:apply-templates select="." mode="cpp-type"/><xsl:value-of select="concat(' ', @field)"/>
 153     <xsl:if test="position() != last()">,
 154     </xsl:if></xsl:for-each>) : TraceEvent&lt;<xsl:value-of select="concat('Event', @id)"/>&gt;(TIMED) {
 155     if (should_commit()) {<xsl:for-each select="value|structvalue|transition_value|relation">
 156       set_<xsl:value-of select="@field"/>(<xsl:value-of select="@field"/>);</xsl:for-each>
 157     }
 158   }
 159 
 160   void commit(<xsl:for-each select="value|structvalue|transition_value|relation">
 161     <xsl:apply-templates select="." mode="cpp-type"/><xsl:value-of select="concat(' ', @field)"/>
 162     <xsl:if test="position() != last()">,
 163               </xsl:if></xsl:for-each>) {
 164     if (should_commit()) {
 165       <xsl:for-each select="value|structvalue|transition_value|relation">set_<xsl:value-of select="@field"/>(<xsl:value-of select="@field"/>);
 166       </xsl:for-each>commit();




 126 
 127  public:
 128 <xsl:apply-templates select="value|structvalue|transition_value|relation" mode="write-setters"/>
 129 
 130   bool should_write(void) {
 131     return true;
 132   }
 133 <xsl:text>
 134 
 135 </xsl:text>
 136   <xsl:value-of select="concat('  Event', @id, '(EventStartTime timing=TIMED) : TraceEvent&lt;Event', @id, '&gt;(timing) {}', $newline)"/>
 137   void writeEvent(void) {
 138     if (UseLockedTracing) {
 139       ttyLocker lock;
 140       writeEventContent();
 141     } else {
 142       writeEventContent();
 143     }
 144   }
 145 
 146   using <xsl:value-of select="concat('TraceEvent&lt;Event', @id, '&gt;')"/>::commit; // else commit() is hidden by overloaded versions in this class
 147 
 148 <xsl:variable name="instant" select="@is_instant"/>
 149 <!-- non static method (only for non instant events)-->
 150 <xsl:if test="$instant='false'">
 151   <xsl:value-of select="concat('  Event', @id)"/>(
 152     <xsl:for-each select="value|structvalue|transition_value|relation">
 153     <xsl:apply-templates select="." mode="cpp-type"/><xsl:value-of select="concat(' ', @field)"/>
 154     <xsl:if test="position() != last()">,
 155     </xsl:if></xsl:for-each>) : TraceEvent&lt;<xsl:value-of select="concat('Event', @id)"/>&gt;(TIMED) {
 156     if (should_commit()) {<xsl:for-each select="value|structvalue|transition_value|relation">
 157       set_<xsl:value-of select="@field"/>(<xsl:value-of select="@field"/>);</xsl:for-each>
 158     }
 159   }
 160 
 161   void commit(<xsl:for-each select="value|structvalue|transition_value|relation">
 162     <xsl:apply-templates select="." mode="cpp-type"/><xsl:value-of select="concat(' ', @field)"/>
 163     <xsl:if test="position() != last()">,
 164               </xsl:if></xsl:for-each>) {
 165     if (should_commit()) {
 166       <xsl:for-each select="value|structvalue|transition_value|relation">set_<xsl:value-of select="@field"/>(<xsl:value-of select="@field"/>);
 167       </xsl:for-each>commit();


< prev index next >