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

Call Method::compute_has_loops_flag() when creating CDS archive

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • None
    • hotspot
    • b19

      This is a small optimization to reduce JIT overhead during runtime.

      https://github.com/openjdk/jdk/blob/a8871f5d26e5cb42c031c7b736ec30b1b147a2bc/src/hotspot/share/oops/method.cpp#L715

      ***

      This is also a prerequisite for JDK-8305753 -- the JIT only calls compute_has_loops_flag() for methods that are compiled. As a result, different invocation of "java -Xshare:dump" may result in differences in the resulting archive, thus breaking the test test/hotspot/jtreg/runtime/cds/DeterministicDump.java

            iklam Ioi Lam
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: