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

Test java/nio/file/Files/CheckPermissions.java triggers stack overflow with -server -Xcomp

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 9, 10
    • Fix Version/s: tbd
    • Component/s: hotspot

      Description

      Apparently because of its use of a custom SecurityManager, the nio CheckPermissions test causes
      infinite recursion and eventually a StackOverflowError when run with -Xcomp.

      % b40/fastdebug/bin/java -server -XX:-TieredCompilation -Xcomp -XX:+TraceExceptions -cp classes/ CheckPermissions >& L
      % egrep StackOverflowError L | wc
           14 146 1799

      This problem showed up previously with C1, and something in C1 was fixed, but the problem still shows up with C2, and test has not been fixed. We should check if the test is making bad assumptions about class loading, or if -Xcomp is changing the semantics. In other words, even if the test passes, the infinite recursion causes the test to run longer than necessary, and could be causing it to short-circuit some checks.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dlong Dean Long
                Reporter:
                dlong Dean Long
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: