8247912: Make narrowOop a scoped enum

Reviewed-by: iklam, stefank
This commit is contained in:
Kim Barrett 2020-10-01 10:45:22 +00:00
parent 928da494a8
commit 2d9fa9da02
22 changed files with 88 additions and 55 deletions

View file

@ -204,7 +204,7 @@ Klass::Klass(KlassID id) : _id(id),
_prototype_header(markWord::prototype()),
_shared_class_path_index(-1) {
CDS_ONLY(_shared_class_flags = 0;)
CDS_JAVA_HEAP_ONLY(_archived_mirror = 0;)
CDS_JAVA_HEAP_ONLY(_archived_mirror = narrowOop::null;)
_primary_supers[0] = this;
set_super_check_offset(in_bytes(primary_supers_offset()));
}