Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 1.2.2
    • Fix Version/s: None
    • Component/s: vm-legacy
    • Labels:

      Description



      Name: skT88420 Date: 07/20/99


      java full version "JDK-1.2.2-U"

      If this is a dup, sorry, I really don't know what to search for
      on this one - it is a strange problem.

      The following code crashes the vm with

      "The instruction at "0x504de294" referenced memory at "0x000329dc". The memory
      could not be "read".

      Run with -Djava.compiler=NONE there is no problem, also with
      jdk1.2.1 there is no problem.

      Thanks,
      Steven

      ---code---
      import java.util.*;

      public class TestCrash
      {
       
          public TestCrash()
          {
          }

          static Runtime rt = Runtime.getRuntime();
          static long mem = 0;
          public static void printMemory(String msg)
          {
              while(mem != rt.totalMemory() - rt.freeMemory()) {
                  mem = rt.totalMemory() - rt.freeMemory();
                  System.gc();
              }
              System.out.println(msg + ": " + mem);
          }
          
          public static void main(String[] args)
          {
              try {
                  printMemory("Start Test.");
              }
              catch (Exception e) {e.printStackTrace();}
          }
          
      }
      ---end code---
      (Review ID: 88154)
      ======================================================================

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              skonchad Sandeep Konchady
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: