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

Recursive calls do not effectively lead to a StackOverflowError

XMLWordPrintable

    • x86_64
    • linux

      ADDITIONAL SYSTEM INFORMATION :
      Microsoft Windows 10 Professional
      10.0.19044 Build 19044
      AMD Ryzen 5 5600G with Radeon Graphics 3.90 GHz
      Memory 32 GB

      openjdk version "1.8.0_332"
      IBM Semeru Runtime Open Edition (build 1.8.0_332-b09)
      Eclipse OpenJ9 VM (build openj9-0.32.0, JRE 1.8.0 Windows 10 amd64-64-Bit Compressed References 20220422_375 (JIT enabled, AOT enabled)
      OpenJ9 - 9a84ec34e
      OMR - ab24b6666
      JCL - 0b8b8af39a based on jdk8u332-b09)

      openjdk version "11.0.15" 2022-04-19
      IBM Semeru Runtime Open Edition 11.0.15.0 (build 11.0.15+10)
      Eclipse OpenJ9 VM 11.0.15.0 (build openj9-0.32.0, JRE 11 Windows 10 amd64-64-Bit Compressed References 20220422_352 (JIT enabled, AOT enabled)
      OpenJ9 - 9a84ec34e
      OMR - ab24b6666
      JCL - b7b5b42ea6 based on jdk-11.0.15+10)

      A DESCRIPTION OF THE PROBLEM :
      In the test case we recursively called the sum() method, but sometimes it executed correctly, but sometimes a StackOverflowError was caught. When -Xint is set, it is executed normally.
      We've uploaded test cases that reproduce behavioral differences to the Google Drive, which can be found at the URL(https://drive.google.com/file/d/1rYZrt6vciO_0MWG_U-l4ScbTp5pwEWjT/view?usp=sharing).


            sswsharm swati sharma (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: