JIT (3.00.072b(x)) error 'GetRegisterA' in for/switch code

XMLWordPrintable



      Name: tb29552 Date: 11/12/98


      /*

      Error message:

      A nonfatal internal JIT (3.00.072b(x)) error 'GetRegisterA' has occurred in :
        'rts/vCset.<init> (Lrts/vString;)V': Interpreting method.

      The method is simple -- this might be enough for you to reproduce the
      problem. Email me if you need more: ###@###.###.

      Here is the method:

      */
      class vCset {

          //private vCset (vString s) {
          private vCset (String s) {
      long size = 0;
      long w1 = 0;
      long w2 = 0;
      long w3 = 0;
      long w4 = 0;
      // new Cset(vString s) byte[] b = s.getBytes();
      byte[] b = s.getBytes();
      for (int i = 0; i < b.length; i++) {
      int c = b[i] & 0xFF;
      long m = 1L << c;
      switch (c >> 6) {
      case 0:
      if ((w1 & m) == 0) {
      w1 |= m;
      size++;
      } break;
      case 1:
      if ((w2 & m) == 0) {
      w2 |= m;
      size++;
      } break;
      case 2:
      if ((w3 & m) == 0) {
      w3 |= m;
      size++;
      } break;
      case 3:
      if ((w4 & m) == 0) {
      w4 |= m;
      size++;
      } break;
      }
      }
          }

          public static void outputMessage() {
      System.out.println("java.version = " +
      System.getProperty("java.version"));
      System.out.println("Operating System Name = " +
      System.getProperty("os.name"));
      System.out.println("Operating system architecture = " +
      System.getProperty("os.arch"));
      System.out.println("Operating system version = " +
      System.getProperty("os.version") + "\n");
          }

          public static void main(String[] args) {
      outputMessage();
      vCset vcs1 = new vCset ("mumble");
          }
      }

      (Review ID: 42573)
      ======================================================================

            Assignee:
            Unassigned
            Reporter:
            Tim Bell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: