--- old/src/hotspot/share/oops/method.hpp 2019-04-24 13:36:20.000000000 -0700 +++ new/src/hotspot/share/oops/method.hpp 2019-04-24 13:36:19.000000000 -0700 @@ -669,18 +669,19 @@ // returns true if the method does nothing but return a constant of primitive type bool is_constant_getter() const; - // returns true if the method is an initializer ( or ). - bool is_initializer() const; - - // returns true if the method is static OR if the classfile version < 51 - bool has_valid_initializer_flags() const; - // returns true if the method name is and the method has // valid static initializer flags. - bool is_static_initializer() const; + bool is_class_initializer() const; + + // returns true if the method name is and the method is not a static factory + bool is_object_constructor() const; + + // returns true if the method is an object constructor or class initializer + // (non-static or ), but false for factories (static ). + bool is_object_constructor_or_class_initializer() const; - // returns true if the method name is - bool is_object_initializer() const; + // returns true if the method name is and the method is static + bool is_static_init_factory() const; // compiled code support // NOTE: code() is inherently racy as deopt can be clearing code