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

Improve jlink VersionPropsPlugin

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 15
    • None
    • tools
    • None
    • b19

    Description

      With JDK-8232080, a jlink plugin to modify vendor specific system properties in runtime images created with jlink was introduced.
      The plugin modifies the bytecode of class java.lang.VersionProps to initialize certain properties to a configurable value.

      The static class initializer is rewritten, using java-asm, to intercept the putstatic bytecode that loads the field value, pops the top operand of the stack and emits another ldc instruction to load the new value from the constant pool.

      This can be optimized to replace the original ldc instruction with the ldc that loads the new value, removing the additonal pop and ldc bytecodes.

      Attachments

        Activity

          People

            clanger Christoph Langer
            clanger Christoph Langer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: