8226690: SIGSEGV in MetadataOnStackClosure::do_metadata

Dont create nmethod if classes have been redefined since compilation start.

Reviewed-by: sspitsyn, dlong, eosterlund, gdub
This commit is contained in:
Coleen Phillimore 2019-09-26 09:22:49 -04:00
parent 848614a01c
commit 6e1aa9065c
9 changed files with 43 additions and 7 deletions

View file

@ -232,9 +232,9 @@ void VM_RedefineClasses::doit() {
ResolvedMethodTable::adjust_method_entries(&trace_name_printed);
}
// Set flag indicating that some invariants are no longer true.
// Increment flag indicating that some invariants are no longer true.
// See jvmtiExport.hpp for detailed explanation.
JvmtiExport::set_has_redefined_a_class();
JvmtiExport::increment_redefinition_count();
// check_class() is optionally called for product bits, but is
// always called for non-product bits.