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

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

Compiling hotspot with g++ 4.6.1 on Ubuntu 11.10 fails when compiling 

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