@@ -747,6 +747,7 @@ void JVMCINMethodData::initialize(int nmethod_mirror_index,
747
747
int nmethod_entry_patch_offset,
748
748
const char * nmethod_mirror_name,
749
749
bool is_default,
750
+ bool profile_deopt,
750
751
FailedSpeculation** failed_speculations)
751
752
{
752
753
_failed_speculations = failed_speculations;
@@ -761,10 +762,12 @@ void JVMCINMethodData::initialize(int nmethod_mirror_index,
761
762
_properties.bits ._has_name = 0 ;
762
763
}
763
764
_properties.bits ._is_default = is_default;
765
+ _properties.bits ._profile_deopt = profile_deopt;
764
766
}
765
767
766
768
void 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 );
768
771
}
769
772
770
773
void JVMCINMethodData::add_failed_speculation (nmethod* nm, jlong speculation) {
@@ -2086,6 +2089,7 @@ JVMCI::CodeInstallResult JVMCIRuntime::register_method(JVMCIEnv* JVMCIENV,
2086
2089
char * failure_detail = nullptr ;
2087
2090
2088
2091
bool install_default = JVMCIENV->get_HotSpotNmethod_isDefault (nmethod_mirror) != 0 ;
2092
+ bool profile_deopt = JVMCIENV->get_HotSpotNmethod_profileDeopt (nmethod_mirror) != 0 ;
2089
2093
assert (JVMCIENV->isa_HotSpotNmethod (nmethod_mirror), " must be" );
2090
2094
JVMCIObject name = JVMCIENV->get_InstalledCode_name (nmethod_mirror);
2091
2095
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,
2154
2158
nmethod_entry_patch_offset,
2155
2159
nmethod_mirror_name,
2156
2160
install_default,
2161
+ profile_deopt,
2157
2162
failed_speculations);
2158
2163
nm = nmethod::new_nmethod (method,
2159
2164
compile_id,
0 commit comments