RFR JDK-8193325: StackFrameInfo::getByteCodeIndex returns wrong value if bci > 32767

David Holmes david.holmes at oracle.com
Mon Aug 12 22:28:32 UTC 2019

Hi Mandy,

On 13/08/2019 6:24 am, Mandy Chung wrote:
> Having a second thought, I'm keeping @Stable bci field while zero 
> indicates an invalid BCI that makes it obvious that this field will be 
> updated.  VM will set StackFrameInfo::bci to value+1.

I don't know this code but why have the VM set the value one too many 
and then have the Java code subtract one again. ???


> http://cr.openjdk.java.net/~mchung/jdk14/8193325/webrev.03/
> Mandy

More information about the core-libs-dev mailing list