3 ms·
Do you have links available for your bug reports?
by brown9-2 14y ago
Do you have links available for your bug reports?
- SeanLuke 14y agoNot since Sun->Oracle totally changed the bug reporting system, sorry. It was long ago. In the ArrayList case, IIRC (it was years ago) the issue was the now-notorious RangeCheck function. For example, get(index) does this: RangeCheck(index); return elementData[index]; get() could be inlined, but because RangeCheck threw an exception if the index was >= size, RangeCheck was not inlined. But if you did this: if (index >= size) RangeCheck(index); return elementData[index]; ... you could bypass it and calls to get() would involve inlined code unless the exception was triggered. Same went for set and add. Recent versions of HotSpot have mooted this now.