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

Index out of bound exeption, jr3 1.3.1

XMLWordPrintable

    • sparc
    • solaris

      see the attached PDF-File

      Bottom line: The last statement is apparently not being executed
      after the HotSpot optimizer turns it to object code:

      public class OutputStreamImpl extends OutputStream {
        ...
        protected int _cursor;
        ...
        public final void write_long(int i, int pos) {
          // save current _cursor position in local variable save_cursor
          int save_cursor = _cursor;

          // set _cursor position to pos and write out i
          _cursor = pos;
          write_long(i);

          // restore original _cursor position
          _cursor = save_cursor; // %%%% THIS STORE "OPTIMIZED" AWAY
        }
        ...
      }

      The customer has experimented with putting print statements here.
      It would be useful to see the set of distinct backtraces leading
      to calls to this function, perhaps with Thread.dumpStack().

      ###@###.### 2002-05-24

            jrose John Rose
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: