changeset 4194:6538f0c1bd05

8007134: Enable tracing asserts on missing ResourceMark Reviewed-by: dholmes, sla
author mgronlun
date Thu, 07 Feb 2013 11:03:33 +0100
parents 073e56606b4d
children dd4950f173a5
files src/share/vm/trace/traceEventClasses.xsl
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/trace/traceEventClasses.xsl	Wed Feb 06 11:20:07 2013 -0800
+++ b/src/share/vm/trace/traceEventClasses.xsl	Thu Feb 07 11:03:33 2013 +0100
@@ -36,6 +36,7 @@
 // Some parts of traceEvent.hpp are used outside of
 // INCLUDE_TRACE
 
+#include "memory/resourceArea.hpp"
 #include "tracefiles/traceTypes.hpp"
 #include "trace/traceEvent.hpp"
 
@@ -128,6 +129,7 @@
 </xsl:text>
   <xsl:value-of select="concat('  Event', @id, '(EventStartTime timing=TIMED) : TraceEvent&lt;Event', @id, '&gt;(timing) {}', $newline)"/>
   void writeEvent(void) {
+    ResourceMark rm;
     TraceStream ts(*tty);
     ts.print("<xsl:value-of select="@label"/>: [");
 <xsl:apply-templates select="value|structvalue" mode="write-data"/>