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

javac, class file library should remove unused entries in the constant pool

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P5 P5
    • tbd
    • 8
    • tools
    • None
    • Cause Known

      After removing methods from a class file with the tool jdk/make/tools/src/build/tools/classfile/RemoveMethods.java, entries in the class pool referenced only from the deleted methods are not needed anymore.

      It would be necessary for the class file library to check what CP entries are not used and remove them or assign a dummy (and small in terms of memory) value to them.

            Unassigned Unassigned
            vromero Vicente Arturo Romero Zaldivar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: