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

java -native is failed by recursive call

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.2.2
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux

      Description



      Name: kaC94536 Date: 12/02/99



      The following test hungs Linux JVM (JDK1.2.2-G). I think the value of
      variable "size" can differ on various computers, but it should be quite
      big.

      ------------------------------ test.java ------------------------------

      public class test {

        void runner(long i) {
          long j = i;
          if(i > 0) runner(j - 1);
          return;
        }

        public static void main(String argv[]) {
          long size = 100000;
          try {
            new test().runner(size);
          } catch (Exception e) {
            System.out.println(e);
          }
        }
      }

      -------------------------------- output -------------------------------

      $ java -native -version
      java version "1.2.2"
      Classic VM (build 1.2.2-G, native threads, javacomp)
      $ java -native test
      Segmentation fault
      $

      ======================================================================

      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              hongzh Hong Zhang
              Reporter:
              kanisimosunw Konstantin Anisimov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: