< prev index next >

hotspot/src/share/vm/oops/method.hpp

Print this page
rev 6907 : 8056071: compiler/whitebox/IsMethodCompilableTest.java fails with 'method() is not compilable after 3 iterations'
Summary: Always use MDO if valid and always compile trivial methods with C1 if available.
Reviewed-by: kvn, iveresov

@@ -617,10 +617,13 @@
   void set_guaranteed_monitor_matching()         { _access_flags.set_monitor_matching(); }
 
   // returns true if the method is an accessor function (setter/getter).
   bool is_accessor() const;
 
+  // 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 (<init> or <clinit>).
   bool is_initializer() const;
 
   // returns true if the method is static OR if the classfile version < 51
   bool has_valid_initializer_flags() const;
< prev index next >