hotspot/src/share/vm/oops/method.cpp
changeset 15595 54a3423a504f
parent 15481 63b99e56827f
parent 15591 b8aa0577f137
child 15601 df8faef6efaf
--- a/hotspot/src/share/vm/oops/method.cpp	Fri Feb 08 10:08:40 2013 +0100
+++ b/hotspot/src/share/vm/oops/method.cpp	Fri Feb 08 09:14:06 2013 -0800
@@ -1393,9 +1393,9 @@
 
 
 //-----------------------------------------------------------------------------------
-// Non-product code
+// Non-product code unless JVM/TI needs it
 
-#ifndef PRODUCT
+#if !defined(PRODUCT) || INCLUDE_JVMTI
 class SignatureTypePrinter : public SignatureTypeNames {
  private:
   outputStream* _st;
@@ -1430,8 +1430,13 @@
   sig.print_parameters();
   st->print(")");
 }
+#endif // !PRODUCT || INCLUDE_JVMTI
 
 
+//-----------------------------------------------------------------------------------
+// Non-product code
+
+#ifndef PRODUCT
 void Method::print_codes_on(outputStream* st) const {
   print_codes_on(0, code_size(), st);
 }