XS RFR: 8006103: [parfait] Possible null pointer dereference at hotspot/src/os/linux/vm/os_linux.cpp; os_windows.cpp; os_solaris.cpp; os_bsd.cpp

David Holmes david.holmes at oracle.com
Wed Apr 3 21:56:50 PDT 2013


On 2/04/2013 3:10 AM, Calvin Cheung wrote:
> Simple fix is to add null check on pelements.

This warning is bogus. You will only get NULL if n==0 and if n==0 then 
you don't dereference pelements.

David
-----

> webrev: http://cr.openjdk.java.net/~ccheung/8006103/webrev/
> bug: https://jbs.oracle.com/bugs/browse/JDK-8006103
>
> Test: jprt run was successful.
>
> thanks,
> Calvin


More information about the hotspot-runtime-dev mailing list