8218974: Free GC native structures in nmethod::flush

Reviewed-by: pliden
This commit is contained in:
Erik Österlund 2019-02-26 11:36:00 +01:00
parent 30b074d93c
commit c1250e0816
9 changed files with 31 additions and 51 deletions

View file

@ -1370,6 +1370,8 @@ void nmethod::flush() {
assert(_speculation_log == NULL, "should have been nulled out when transitioned to zombie");
#endif
Universe::heap()->flush_nmethod(this);
CodeBlob::flush();
CodeCache::free(this);
}