-
Enhancement
-
Resolution: Fixed
-
P3
-
11, 12
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8230513 | 11.0.6 | Ioi Lam | P3 | Resolved | Fixed | b01 |
MetaspaceShared::serialize_well_known_classes() archived the field offsets computed by JavaClasses::compute_offsets(). At runtime, the archived field offsets are used without recomputing.
When a new class is added in javaClasses.*, if MetaspaceShared::serialize_well_known_classes() is not updated to include the new class' field offsets, there will be a runtime failure when the new field offset is used.
To avoid JavaClasses::compute_offsets() and MetaspaceShared::serialize_well_known_classes() being out of sync, we could use shared macros for these functions.
When a new class is added in javaClasses.*, if MetaspaceShared::serialize_well_known_classes() is not updated to include the new class' field offsets, there will be a runtime failure when the new field offset is used.
To avoid JavaClasses::compute_offsets() and MetaspaceShared::serialize_well_known_classes() being out of sync, we could use shared macros for these functions.
- backported by
-
JDK-8230513 Use shared macros for JavaClasses::compute_offsets and MetaspaceShared::serialize_well_known_classes
-
- Resolved
-
- relates to
-
JDK-8209120 Archive the Integer.IntegerCache
-
- Resolved
-