Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8206115

Use shared macros for JavaClasses::compute_offsets and MetaspaceShared::serialize_well_known_classes

XMLWordPrintable

    • 11
    • b07

        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.

              iklam Ioi Lam
              jiangli Jiangli Zhou
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: