RFR(S) 7171824: assert(_offset >= 1) failed: illegal call to offset()
Roland Westrelin
roland.westrelin at oracle.com
Thu Aug 16 00:59:10 PDT 2012
Hi Chris,
> Looks good. Could you move the all_offsets after the compare:
> + && (all_offsets || lf->field()->offset() == field->offset());
> It would be easier to read.
Do you mean:
(lf->field()->offset() == field->offset() || all_offsets)
?
That wouldn't work. The all_offsets must shortcut so that the lf->field()->offset() == field->offset() test isn' run. Otherwise, the assert(_offset >= 1) will trigger when _offset = -1 in the call to offset() which may happen when all_offsets is true.
Roland.
More information about the hotspot-compiler-dev
mailing list