Skip to content
Closed
4 changes: 4 additions & 0 deletions src/hotspot/share/code/nmethod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4080,4 +4080,8 @@ const char* nmethod::jvmci_name() {
}
return nullptr;
}

bool nmethod::is_jvmci_hosted() const {
return jvmci_nmethod_data() != nullptr && !jvmci_nmethod_data()->is_default();
}
#endif
4 changes: 1 addition & 3 deletions src/hotspot/share/code/nmethod.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -919,9 +919,7 @@ class nmethod : public CodeBlob {

// Returns true if a JVMCI compiled method is non-default,
// i.e., not triggered by CompilerBroker
bool is_jvmci_hosted() const {
return jvmci_nmethod_data() != nullptr && !jvmci_nmethod_data()->is_default();
}
bool is_jvmci_hosted() const;
#endif

void oops_do(OopClosure* f) { oops_do(f, false); }
Expand Down