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

Simplify HeapShared::archive_module_graph_objects

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b08

      Backports

        Description

        Currently HeapShared::archive_module_graph_objects requires the creation of a new C++ class in javaClasses.hpp for each Java class where we want to archive a static field. See:

        http://hg.openjdk.java.net/jdk/jdk/file/910f7b56592f/src/hotspot/share/memory/heapShared.cpp#l505
        http://hg.openjdk.java.net/jdk/jdk/file/910f7b56592f/src/hotspot/share/classfile/javaClasses.hpp#l1488

        This is hard to maintain and error prone. We should try to refactor the code it so the set of archivable static fields can be specified by a simple table.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: