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

[TESTBUG] compiler/codecache/CheckSegmentedCodeCache.java test fails with product build

XMLWordPrintable

    • b40

        The test 'compiler/codecache/CheckSegmentedCodeCache.java' fails in PIT with 'Not enough space in non-nmethod code heap to run VM' missing from stdout/stderr.

        The problem is that the test expects the VM to always exit with an error message at startup if a ReservedCodeCacheSize of 1700K is specified:
        Command line: [java -XX:+SegmentedCodeCache -XX:ReservedCodeCacheSize=1700K -XX:InitialCodeCacheSize=100K ]

        This is only true for debug builds but does not hold for product builds (see 'min_code_cache_size' in 'CodeCache::initialize_heaps()'). The test has to check for the build type and adjust the ReservedCodeCacheSize accordingly to trigger the error message.

              thartmann Tobias Hartmann
              tpivovarova Tatiana Pivovarova (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: