Review request (XS): 7125503: Compiling collectedHeap.cpp fails with -Werror=int-to-pointer-cast with g++ 4.6.1

Jon Masamitsu jon.masamitsu at oracle.com
Wed Dec 28 15:44:18 UTC 2011


Looks good.

On 12/28/2011 7:15 AM, Stefan Karlsson wrote:
> http://cr.openjdk.java.net/~stefank/7125503/webrev.00/
>
> Compiling hotspot with g++ 4.6.1 on Ubuntu 11.10 fails when compiling 
> collectedHeap.cpp.
>
> src/share/vm/gc_interface/collectedHeap.cpp: In static member function 
> ‘static void CollectedHeap::test_is_in()’:
> src/share/vm/gc_interface/collectedHeap.cpp:485:3: error: cast to 
> pointer from integer of different size [-Werror=int-to-pointer-cast]



More information about the hotspot-gc-dev mailing list