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

Class load and creation cleanup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • None
    • hotspot
    • None
    • svc
    • b99

      Clean up / refactoring objectives:

      - allow for class parsing implementation reuse

      - decouple class parsing and Klass* creation

      - Decouple JVMTI class file load hook from ClassFileParser

      - Introduce stricter constness for ClassFileStream/ClassFileParser (in order to assist future refactoring) (constness will affect contextual code)

      - ClassFileParser to act as RAII for resource management

      - ClassFileParser to be used as an object/component, simplifying the Klass/InstanceKlass/ArrayKlass creation code

      - Some optimizations can be accomplished in constructors, esp taking advantage of the infrastructure provided by MetaspaceObj allocation "calloc" equivalent memory

      - clean up artifacts (handles etc)

      - maintain class load performance

            mgronlun Markus Grönlund
            mgronlun Markus Grönlund
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: