@@ -747,6 +747,7 @@ void JVMCINMethodData::initialize(int nmethod_mirror_index,
747747 int nmethod_entry_patch_offset,
748748 const char * nmethod_mirror_name,
749749 bool is_default,
750+ bool profile_deopt,
750751 FailedSpeculation** failed_speculations)
751752{
752753 _failed_speculations = failed_speculations;
@@ -761,10 +762,12 @@ void JVMCINMethodData::initialize(int nmethod_mirror_index,
761762 _properties.bits ._has_name = 0 ;
762763 }
763764 _properties.bits ._is_default = is_default;
765+ _properties.bits ._profile_deopt = profile_deopt;
764766}
765767
766768void JVMCINMethodData::copy (JVMCINMethodData* data) {
767- initialize (data->_nmethod_mirror_index , data->_nmethod_entry_patch_offset , data->name (), data->_properties .bits ._is_default , data->_failed_speculations );
769+ initialize (data->_nmethod_mirror_index , data->_nmethod_entry_patch_offset , data->name (), data->_properties .bits ._is_default ,
770+ data->_properties .bits ._profile_deopt , data->_failed_speculations );
768771}
769772
770773void JVMCINMethodData::add_failed_speculation (nmethod* nm, jlong speculation) {
@@ -2086,6 +2089,7 @@ JVMCI::CodeInstallResult JVMCIRuntime::register_method(JVMCIEnv* JVMCIENV,
20862089 char * failure_detail = nullptr ;
20872090
20882091 bool install_default = JVMCIENV->get_HotSpotNmethod_isDefault (nmethod_mirror) != 0 ;
2092+ bool profile_deopt = JVMCIENV->get_HotSpotNmethod_profileDeopt (nmethod_mirror) != 0 ;
20892093 assert (JVMCIENV->isa_HotSpotNmethod (nmethod_mirror), " must be" );
20902094 JVMCIObject name = JVMCIENV->get_InstalledCode_name (nmethod_mirror);
20912095 const char * nmethod_mirror_name = name.is_null () ? nullptr : JVMCIENV->as_utf8_string (name);
@@ -2154,6 +2158,7 @@ JVMCI::CodeInstallResult JVMCIRuntime::register_method(JVMCIEnv* JVMCIENV,
21542158 nmethod_entry_patch_offset,
21552159 nmethod_mirror_name,
21562160 install_default,
2161+ profile_deopt,
21572162 failed_speculations);
21582163 nm = nmethod::new_nmethod (method,
21592164 compile_id,
0 commit comments