diff options
author | kvn <none@none> | 2011-10-27 09:39:24 -0700 |
---|---|---|
committer | kvn <none@none> | 2011-10-27 09:39:24 -0700 |
commit | 6e50930f40314d6e6aa9dbfdfde981c58cc3a9a7 (patch) | |
tree | 6479de3dc6a1cb6deffd8b5ff001b49eb90fe808 | |
parent | f7653e905775d322a01f814db34de86c34b380b3 (diff) |
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
-rw-r--r-- | src/share/vm/ci/ciMethodHandle.cpp | 8 | ||||
-rw-r--r-- | src/share/vm/ci/ciMethodHandle.hpp | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/share/vm/ci/ciMethodHandle.cpp b/src/share/vm/ci/ciMethodHandle.cpp index b4c91617d..831c6a5e8 100644 --- a/src/share/vm/ci/ciMethodHandle.cpp +++ b/src/share/vm/ci/ciMethodHandle.cpp @@ -86,12 +86,12 @@ ciMethod* ciMethodHandle::get_adapter(bool is_invokedynamic) { } -#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 @@ void ciMethodHandle::print_chain_impl(outputStream* st) { // 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 --git a/src/share/vm/ci/ciMethodHandle.hpp b/src/share/vm/ci/ciMethodHandle.hpp index e19d053f3..536ebefd1 100644 --- a/src/share/vm/ci/ciMethodHandle.hpp +++ b/src/share/vm/ci/ciMethodHandle.hpp @@ -45,7 +45,7 @@ private: 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 @@ public: return _invokedynamic_adapter; } - void print_chain(outputStream* st = tty) PRODUCT_RETURN; + void print_chain() NOT_DEBUG_RETURN; }; #endif // SHARE_VM_CI_CIMETHODHANDLE_HPP |