# HG changeset patch # User kvn # Date 1319733564 25200 # Node ID 3b6e9c685073625243797e5be69a7beea05d57ea # Parent ef164805934c32b8774dc265e03bfb0d19ce9209 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 diff -r ef164805934c -r 3b6e9c685073 hotspot/src/share/vm/ci/ciMethodHandle.cpp --- a/hotspot/src/share/vm/ci/ciMethodHandle.cpp Thu Oct 27 04:43:37 2011 -0700 +++ b/hotspot/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 diff -r ef164805934c -r 3b6e9c685073 hotspot/src/share/vm/ci/ciMethodHandle.hpp --- a/hotspot/src/share/vm/ci/ciMethodHandle.hpp Thu Oct 27 04:43:37 2011 -0700 +++ b/hotspot/src/share/vm/ci/ciMethodHandle.hpp Thu Oct 27 09:39:24 2011 -0700 @@ -45,7 +45,7 @@ ciMethod* get_adapter( bool is_invokedynamic); protected: - void print_chain_impl(outputStream* st) PRODUCT_RETURN; + void print_chain_impl() NOT_DEBUG_RETURN; public: ciMethodHandle(instanceHandle h_i) : @@ -79,7 +79,7 @@ return _invokedynamic_adapter; } - void print_chain(outputStream* st = tty) PRODUCT_RETURN; + void print_chain() NOT_DEBUG_RETURN; }; #endif // SHARE_VM_CI_CIMETHODHANDLE_HPP