8185103: TestThreadDumpMonitorContention.java crashed due to SIGSEGV in G1SATBCardTableModRefBS::write_ref_field_pre_work

Ensure that a Klass's mirror is set before putting the Klass on the fixup_module_field_list

Reviewed-by: coleenp, dholmes, gtriantafill
This commit is contained in:
Harold Seigel 2017-08-08 08:41:36 -04:00
parent 1005679aac
commit 2787fd2cd7
3 changed files with 23 additions and 13 deletions

View file

@ -212,6 +212,7 @@ class java_lang_Class : AllStatic {
static void initialize_mirror_fields(Klass* k, Handle mirror, Handle protection_domain, TRAPS);
static void set_mirror_module_field(Klass* K, Handle mirror, Handle module, TRAPS);
public:
static void allocate_fixup_lists();
static void compute_offsets();
// Instance creation