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

PublicMethodsTest is slow due to dependency verification with debug builds

XMLWordPrintable

    • b25

        The runtime of the PublicMethodsTest [1] increases from 24 to 58 seconds on our test system using a fastdebug variant of the OpenJDK. The increase is less pronounced for other tests.

        We suspect that the problematic part of the change are the additions to the dependency checking in nmethods [2]: The flamegraphs created by the async-profilers shows clearly that the `nmethods::check_all_dependencies` method dominates the runtime of the program with a fastdebug build after the change.
        The two flamegraphs are appended.

        [1] https://github.com/openjdk/jdk/blob/master/test/jdk/java/lang/reflect/PublicMethods/PublicMethodsTest.java
        [2] https://github.com/openjdk/jdk/commit/127bfe44f7d09f272a08f97bfc5d168eb22474a2#diff-2e8c9df3ee96f0ac67ca9ce82524c6132e5e9bbf828269cd81f160de15bc438fL551

        The issue was brought up by Matthias Baesken.

          1. before.html
            300 kB
          2. after.html
            851 kB

              mbaesken Matthias Baesken
              jbechberger Johannes Bechberger
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: