--- a/hotspot/src/share/vm/oops/method.cpp Tue Feb 05 00:59:40 2013 -0800
+++ b/hotspot/src/share/vm/oops/method.cpp Wed Feb 06 14:31:37 2013 -0800
@@ -1386,9 +1386,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;
@@ -1423,8 +1423,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);
}