-
Bug
-
Resolution: Cannot Reproduce
-
P1
-
None
-
1.3.1
-
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
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