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

runtime/InvocationTests spend a lot of time on dependency verification

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 22
    • 22
    • hotspot
    • b16

      Looking at performance of `runtime/InvocationTests` that run in `hotspot:tier3`, I notice that in `-Xcomp` tests, we are spending considerable time verifying nmethod dependencies, due to large number of generated classes. Normally, we would just add `-XX:-VerifyDependencies` to this test, but I think this test actually wants to verify dependencies as part of the end-to-end invocation checks.

      So, I think we can still mitigate the impact of dependency verification by making class unloading more frequent, so that stale classes would get unloaded often, and thus stop being considered by verification code as potential dependencies. One way is to trim down the metaspace size.

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

              Created:
              Updated:
              Resolved: