7105364: JDK8 b10 hotspot: src/share/vm/ci/ciMethodHandle.cpp Error: Use "." or "->"

Thu, 27 Oct 2011 09:39:24 -0700

author
kvn
date
Thu, 27 Oct 2011 09:39:24 -0700
changeset 3245
e0658a9b3f87
parent 3244
cec1757a0134
child 3246
34535d2cb362

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

src/share/vm/ci/ciMethodHandle.cpp file | annotate | diff | comparison | revisions
src/share/vm/ci/ciMethodHandle.hpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/vm/ci/ciMethodHandle.cpp	Thu Oct 27 04:43:37 2011 -0700
     1.2 +++ b/src/share/vm/ci/ciMethodHandle.cpp	Thu Oct 27 09:39:24 2011 -0700
     1.3 @@ -86,12 +86,12 @@
     1.4  }
     1.5  
     1.6  
     1.7 -#ifndef PRODUCT
     1.8 +#ifdef ASSERT
     1.9  // ------------------------------------------------------------------
    1.10  // ciMethodHandle::print_chain_impl
    1.11  //
    1.12  // Implementation of the print method.
    1.13 -void ciMethodHandle::print_chain_impl(outputStream* st) {
    1.14 +void ciMethodHandle::print_chain_impl() {
    1.15    ASSERT_IN_VM;
    1.16    MethodHandleChain::print(get_oop());
    1.17  }
    1.18 @@ -101,7 +101,7 @@
    1.19  // ciMethodHandle::print_chain
    1.20  //
    1.21  // Implementation of the print_chain method.
    1.22 -void ciMethodHandle::print_chain(outputStream* st) {
    1.23 -  GUARDED_VM_ENTRY(print_chain_impl(st););
    1.24 +void ciMethodHandle::print_chain() {
    1.25 +  GUARDED_VM_ENTRY(print_chain_impl(););
    1.26  }
    1.27  #endif
     2.1 --- a/src/share/vm/ci/ciMethodHandle.hpp	Thu Oct 27 04:43:37 2011 -0700
     2.2 +++ b/src/share/vm/ci/ciMethodHandle.hpp	Thu Oct 27 09:39:24 2011 -0700
     2.3 @@ -45,7 +45,7 @@
     2.4    ciMethod* get_adapter(     bool is_invokedynamic);
     2.5  
     2.6  protected:
     2.7 -  void print_chain_impl(outputStream* st) PRODUCT_RETURN;
     2.8 +  void print_chain_impl() NOT_DEBUG_RETURN;
     2.9  
    2.10  public:
    2.11    ciMethodHandle(instanceHandle h_i) :
    2.12 @@ -79,7 +79,7 @@
    2.13      return _invokedynamic_adapter;
    2.14    }
    2.15  
    2.16 -  void print_chain(outputStream* st = tty) PRODUCT_RETURN;
    2.17 +  void print_chain() NOT_DEBUG_RETURN;
    2.18  };
    2.19  
    2.20  #endif // SHARE_VM_CI_CIMETHODHANDLE_HPP

mercurial