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

Very few CPU sampling due to failure in wait_for_suspend_completion

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 1.4.0
    • 1.4.0
    • vm-legacy
    • None
    • beta3
    • sparc
    • solaris_8
    • Verified

    Description

      JDK1.4 hprof takes very few CPU sampling.

      Using Merlin build 78, hprof takes only about 39 CPU sampling on my sample
      test case (see below).

      Using Ladybird build 24, hprof takes about 750 CPU sampling instead.

      Sample test case:
      import java.io.*;

      public class CPUSampling {
        public static void main(String[] args) {
          long t0 = System.currentTimeMillis();
          int n = 0;
          for (int i = 0; i < 0x7FFFFFF0; i++) {
            n += i;
          }
          long t1 = System.currentTimeMillis();
          System.out.println("Real time: " + (t1 - t0));
        }
      }

      I have seen this problem on Solaris Sparc but we shall also try on other
      platform to see if it's a problem.

      Attachments

        Issue Links

          Activity

            People

              mchung Mandy Chung
              mchung Mandy Chung
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: