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

Stefan Karlsson stefan.karlsson at oracle.com
Wed Dec 28 15:15:45 UTC 2011


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