changeset 1947:6731ec7aa417

Undefine Shark debug code for NDEBUG builds 2010-02-26 Xerxes R?nby <xerxes@zafena.se> * ports/hotspot/src/share/vm/shark/sharkCompiler.cpp (SharkCompiler::generate_native_code): Undefine debug code for NDEBUG builds
author Xerxes R?nby <xerxes@zafena.se>
date Fri, 26 Feb 2010 15:53:18 +0100
parents b50fed90f978
children 5216ec734960
files ChangeLog ports/hotspot/src/share/vm/shark/sharkCompiler.cpp
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Feb 25 12:21:49 2010 +0000
+++ b/ChangeLog	Fri Feb 26 15:53:18 2010 +0100
@@ -1,3 +1,9 @@
+2010-02-26  Xerxes RĂ„nby  <xerxes@zafena.se>
+
+	* ports/hotspot/src/share/vm/shark/sharkCompiler.cpp
+	(SharkCompiler::generate_native_code): Undefine debug code for
+	NDEBUG builds
+
 2010-02-24 Andrew John Hughes  <ahughes@redhat.com>
 
 	* Makefile.am: Add PULSE_JAVA_CLEAN_TARGET
--- a/ports/hotspot/src/share/vm/shark/sharkCompiler.cpp	Thu Feb 25 12:21:49 2010 +0000
+++ b/ports/hotspot/src/share/vm/shark/sharkCompiler.cpp	Fri Feb 26 15:53:18 2010 +0100
@@ -250,6 +250,7 @@
 
     if (SharkPrintAsmOf != NULL) {
 #if SHARK_LLVM_VERSION >= 27
+#ifndef NDEBUG
       if (!fnmatch(SharkPrintAsmOf, name, 0)) {
         llvm::SetCurrentDebugType(X86_ONLY("x86-emitter") NOT_X86("jit"));
         llvm::DebugFlag = true;
@@ -258,6 +259,7 @@
         llvm::SetCurrentDebugType("");
         llvm::DebugFlag = false;
       }
+#endif
 #else
       // NB you need to patch LLVM with http://tinyurl.com/yf3baln for this
       std::vector<const char*> args;