This commit is contained in:
Eric Caspole 2018-12-06 13:54:52 -05:00
commit 89f719be62
3 changed files with 6 additions and 1 deletions

View File

@ -155,6 +155,10 @@ Metadata* AOTCompiledMethod::metadata_at(int index) const {
ShouldNotReachHere(); return NULL;
}
void AOTCompiledMethod::do_unloading(bool unloading_occurred) {
unload_nmethod_caches(unloading_occurred);
}
bool AOTCompiledMethod::make_not_entrant_helper(int new_state) {
// Make sure the method is not flushed in case of a safepoint in code below.
methodHandle the_method(method());

View File

@ -265,6 +265,7 @@ private:
#endif
}
virtual void do_unloading(bool unloading_occurred);
protected:
// AOT compiled methods are not flushed

View File

@ -400,7 +400,7 @@ public:
virtual bool is_unloading() = 0;
bool unload_nmethod_caches(bool class_unloading_occurred);
virtual void do_unloading(bool unloading_occurred) { }
virtual void do_unloading(bool unloading_occurred) = 0;
private:
PcDesc* find_pc_desc(address pc, bool approximate) {