src/hotspot/share/classfile/javaClasses.cpp
changeset 55251 92eec0732eed
parent 55159 a38132298eda
child 57514 9b6d4e64778c
--- a/src/hotspot/share/classfile/javaClasses.cpp	Wed Jun 05 22:19:09 2019 -0700
+++ b/src/hotspot/share/classfile/javaClasses.cpp	Tue Jun 04 17:56:16 2019 +0800
@@ -198,7 +198,7 @@
 #if INCLUDE_CDS
 void java_lang_String::serialize_offsets(SerializeClosure* f) {
   STRING_FIELDS_DO(FIELD_SERIALIZE_OFFSET);
-  f->do_u4((u4*)&initialized);
+  f->do_bool(&initialized);
 }
 #endif
 
@@ -1566,7 +1566,7 @@
 
 #if INCLUDE_CDS
 void java_lang_Class::serialize_offsets(SerializeClosure* f) {
-  f->do_u4((u4*)&offsets_computed);
+  f->do_bool(&offsets_computed);
   f->do_u4((u4*)&_init_lock_offset);
 
   CLASS_FIELDS_DO(FIELD_SERIALIZE_OFFSET);