--- old/src/hotspot/share/opto/compile.hpp 2019-05-01 16:15:32.000000000 -0700 +++ new/src/hotspot/share/opto/compile.hpp 2019-05-01 16:15:32.000000000 -0700 @@ -416,6 +416,7 @@ bool _has_method_handle_invokes; // True if this method has MethodHandle invokes. RTMState _rtm_state; // State of Restricted Transactional Memory usage int _loop_opts_cnt; // loop opts round + bool _clinit_barrier_on_entry; // True if clinit barrier is needed on nmethod entry // Compilation environment. Arena _comp_arena; // Arena with lifetime equivalent to Compile @@ -714,6 +715,8 @@ bool profile_rtm() const { return _rtm_state == ProfileRTM; } uint max_node_limit() const { return (uint)_max_node_limit; } void set_max_node_limit(uint n) { _max_node_limit = n; } + bool clinit_barrier_on_entry() { return _clinit_barrier_on_entry; } + void set_clinit_barrier_on_entry(bool z) { _clinit_barrier_on_entry = z; } // check the CompilerOracle for special behaviours for this compile bool method_has_option(const char * option) {