changeset 7375:cc4bfa308b6d

8064348: Add TraceEvent::is_enabled() for embedded/minimal builds Reviewed-by: ehelin, sla
author mlarsson
date Mon, 10 Nov 2014 12:13:46 +0100
parents dddb28a1f1d0
children bce440df920e
files src/share/vm/trace/traceEventClasses.xsl
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/trace/traceEventClasses.xsl	Fri Nov 07 15:34:33 2014 -0800
+++ b/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 {}
 };