comparison src/share/vm/runtime/synchronizer.cpp @ 513:2328d1d3f8cf

6781583: Hotspot build fails on linux 64 bit platform with gcc 4.3.2 Summary: Fixed the wrong cast between types since more restrictions are imposed by gcc 4.3.2 Reviewed-by: jcoomes, acorn, phh, never
author xlu
date Wed, 24 Dec 2008 19:13:53 -0800
parents a7fac4381b50
children 0fbdb4381b99
comparison
equal deleted inserted replaced
512:db4caa99ef11 513:2328d1d3f8cf
422 // When possible, it's better to catch errors deterministically at 422 // When possible, it's better to catch errors deterministically at
423 // compile-time than at runtime. The down-side to using compile-time 423 // compile-time than at runtime. The down-side to using compile-time
424 // asserts is that error message -- often something about negative array 424 // asserts is that error message -- often something about negative array
425 // indices -- is opaque. 425 // indices -- is opaque.
426 426
427 #define CTASSERT(x) { int tag[1-(2*!(x))]; printf ("Tag @%X\n", tag); } 427 #define CTASSERT(x) { int tag[1-(2*!(x))]; printf ("Tag @" INTPTR_FORMAT "\n", (intptr_t)tag); }
428 428
429 void ObjectMonitor::ctAsserts() { 429 void ObjectMonitor::ctAsserts() {
430 CTASSERT(offset_of (ObjectMonitor, _header) == 0); 430 CTASSERT(offset_of (ObjectMonitor, _header) == 0);
431 } 431 }
432 432