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

[AOT] refactor AOT tool code

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 10
    • hotspot
    • b22
    • generic
    • generic

      Refactoring AOT code:

      - Made most tool's klasses and methods package private and final (biggest change).
      - AOT library sections renaming to shorter names, replacing 'JVM' in their global names with 'A' (Window's linker does not allow names starting with '.')
      - Split MethodCounters GOT cells into separate section - now .kls.got (original .metaspace.got) section will have only klass pointers.
      - Made .method.metadata RO section - it is next big section after .text and it was incorrectly marked as RW due to old implementation.
      - Split big Main.java into separate class:
         Collector.java - collects classes and methods to compile based on flags;
         Linker.java - check if linker is present on machine and execute linking;
         Options.java - process flags.
      - Moved various print methods from Main.java to LogPrinter.java.
      - Split StubInformation.java from CompiledMethodInfo.java.
      - Renamed MiscUtils to CallInfo class.
      - Removed unused RelocType and other values.
      - Fixed Eclipse warnings (for example, removed unused imports).

            kvn Vladimir Kozlov
            kvn Vladimir Kozlov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: