RFR(XS) 8191854: Null pointer dereference in methodData.hpp:462

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

RFR(XS) 8191854: Null pointer dereference in methodData.hpp:462

dean.long
https://bugs.openjdk.java.net/browse/JDK-8191854
http://cr.openjdk.java.net/~dlong/8191854/webrev/

This fixes a possible null pointer dereference here:

           int count = mdo->bci_to_data(branch_bci)->as_JumpData()->taken();
           tty->print_cr("back branch count = %d", count);

if bci_to_data() returns NULL.

dl
Reply | Threaded
Open this post in threaded view
|

Re: RFR(XS) 8191854: Null pointer dereference in methodData.hpp:462

Vladimir Kozlov
Good.

Thanks,
Vladimir

On 12/21/17 6:52 PM, [hidden email] wrote:

> https://bugs.openjdk.java.net/browse/JDK-8191854
> http://cr.openjdk.java.net/~dlong/8191854/webrev/
>
> This fixes a possible null pointer dereference here:
>
>            int count =
> mdo->bci_to_data(branch_bci)->as_JumpData()->taken();
>            tty->print_cr("back branch count = %d", count);
>
> if bci_to_data() returns NULL.
>
> dl
Reply | Threaded
Open this post in threaded view
|

Re: RFR(XS) 8191854: Null pointer dereference in methodData.hpp:462

dean.long
Thanks Vladimir.


dl


On 12/22/17 12:23 PM, Vladimir Kozlov wrote:

> Good.
>
> Thanks,
> Vladimir
>
> On 12/21/17 6:52 PM, [hidden email] wrote:
>> https://bugs.openjdk.java.net/browse/JDK-8191854
>> http://cr.openjdk.java.net/~dlong/8191854/webrev/
>>
>> This fixes a possible null pointer dereference here:
>>
>>            int count =
>> mdo->bci_to_data(branch_bci)->as_JumpData()->taken();
>>            tty->print_cr("back branch count = %d", count);
>>
>> if bci_to_data() returns NULL.
>>
>> dl