< prev index next >

src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.meta/src/jdk/vm/ci/meta/ResolvedJavaMethod.java

Print this page
*** 459,11 ***
  
      /**
       * Determines if this method is {@link java.lang.Object#Object()}.
       */
      default boolean isJavaLangObjectInit() {
!         return getDeclaringClass().isJavaLangObject() && getName().equals("<init>");
      }
  
      /**
       * Gets a speculation log that can be used when compiling this method to make new speculations
       * and query previously failed speculations. The implementation may return a new
--- 459,11 ---
  
      /**
       * Determines if this method is {@link java.lang.Object#Object()}.
       */
      default boolean isJavaLangObjectInit() {
!         return getDeclaringClass().isJavaLangObject() && (getName().equals("<init>") || getName().equals("<vnew>"));
      }
  
      /**
       * Gets a speculation log that can be used when compiling this method to make new speculations
       * and query previously failed speculations. The implementation may return a new
< prev index next >