JDK 9 build with GCC 6.1.1

Andrew Haley aph at redhat.com
Mon Jun 27 11:45:58 UTC 2016


On 27/06/16 12:32, David Holmes wrote:
> I wasn't aware that we have any reliance on gcc doing any kind of "null  
> pointer check" ??

Ah, right, I assumed you'd seen this before.

If GCC sees something like

   a->foo();
   if (a) {
     b();
   }

it will turn it into

   a->foo();
   b();

This surprises some people, but is quite legal.

Andrew.




More information about the hotspot-dev mailing list