diff src/share/vm/ci/ciMethodHandle.cpp @ 4049:e0658a9b3f87

7105364: JDK8 b10 hotspot: src/share/vm/ci/ciMethodHandle.cpp Error: Use "." or "->" Summary: Define ciMethodHandle::print_chain_impl() and ciMethodHandle::print_chain() bodies only in debug builds. Reviewed-by: never, twisti
author kvn
date Thu, 27 Oct 2011 09:39:24 -0700
parents c26de9aef2ed
children 1d7922586cf6
line wrap: on
line diff
--- a/src/share/vm/ci/ciMethodHandle.cpp	Thu Oct 27 04:43:37 2011 -0700
+++ b/src/share/vm/ci/ciMethodHandle.cpp	Thu Oct 27 09:39:24 2011 -0700
@@ -86,12 +86,12 @@
 }
 
 
-#ifndef PRODUCT
+#ifdef ASSERT
 // ------------------------------------------------------------------
 // ciMethodHandle::print_chain_impl
 //
 // Implementation of the print method.
-void ciMethodHandle::print_chain_impl(outputStream* st) {
+void ciMethodHandle::print_chain_impl() {
   ASSERT_IN_VM;
   MethodHandleChain::print(get_oop());
 }
@@ -101,7 +101,7 @@
 // ciMethodHandle::print_chain
 //
 // Implementation of the print_chain method.
-void ciMethodHandle::print_chain(outputStream* st) {
-  GUARDED_VM_ENTRY(print_chain_impl(st););
+void ciMethodHandle::print_chain() {
+  GUARDED_VM_ENTRY(print_chain_impl(););
 }
 #endif