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

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

    Details

    • Subcomponent:
    • Introduced In Version:
      11
    • Resolved In Build:
      b07

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: