8064348: Add TraceEvent::is_enabled() for embedded/minimal builds
authormlarsson
Mon, 10 Nov 2014 12:13:46 +0100
changeset 27634 e6b8ad4d87ac
parent 27633 e15ba904574e
child 27635 2cda6d613b7a
8064348: Add TraceEvent::is_enabled() for embedded/minimal builds Reviewed-by: ehelin, sla
hotspot/src/share/vm/trace/traceEventClasses.xsl
--- a/hotspot/src/share/vm/trace/traceEventClasses.xsl	Fri Nov 07 15:34:33 2014 -0800
+++ b/hotspot/src/share/vm/trace/traceEventClasses.xsl	Mon Nov 10 12:13:46 2014 +0100
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!--
- Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
+ Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 
  This code is free software; you can redistribute it and/or modify it
@@ -59,6 +59,7 @@
   void set_starttime(const Ticks&amp; time) {}
   void set_endtime(const Ticks&amp; time) {}
   bool should_commit() const { return false; }
+  static bool is_enabled() { return false; }
   void commit() const {}
 };