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

Improve hash calculation parallelism in jmod/jlink

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 11, 17, 18, 19, 20
    • tools
    • None

      jmod/jlink are executed during build time to produce the jmod and the base modules image. On slow hardware (Raspberry Pi -class, for example) and/or slow VMs (debug, interpreter-only, for example) this takes a while. Profiling shows the considerable time is spent on hashing modules either for writing out the ModuleHash attribute or for verifying the hashes are good.

      Those paths can be parallelized to make them quite faster.

      The major contributors to module hashing are java.base, jdk.desktop and jdk.localedata, so we have a significant opportunity for parallelism here.

            shade Aleksey Shipilev
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: