# HG changeset patch # User coleenp # Date 1299199983 18000 # Node ID f767174aac1465cebbef1cc71fcc0b6524502cd6 # Parent fbbeec6dad2d1a2a8318dbbcfdf39d66ba4c578a 7021653: Parfait issue in hotspot/src/share/vm/oops/methodDataOops.hpp Summary: Fix compilation error(s) Reviewed-by: kvn, phh, jcoomes, dholmes diff -r fbbeec6dad2d -r f767174aac14 src/share/vm/oops/methodDataOop.hpp --- a/src/share/vm/oops/methodDataOop.hpp Thu Mar 03 19:52:23 2011 -0500 +++ b/src/share/vm/oops/methodDataOop.hpp Thu Mar 03 19:53:03 2011 -0500 @@ -228,7 +228,7 @@ return byte_offset_of(DataLayout, _header._struct._bci); } static ByteSize cell_offset(int index) { - return byte_offset_of(DataLayout, _cells[index]); + return byte_offset_of(DataLayout, _cells) + in_ByteSize(index * cell_size); } // Return a value which, when or-ed as a byte into _flags, sets the flag. static int flag_number_to_byte_constant(int flag_number) { diff -r fbbeec6dad2d -r f767174aac14 src/share/vm/runtime/os.cpp --- a/src/share/vm/runtime/os.cpp Thu Mar 03 19:52:23 2011 -0500 +++ b/src/share/vm/runtime/os.cpp Thu Mar 03 19:53:03 2011 -0500 @@ -633,10 +633,10 @@ *q = (u_char)freeBlockPad; } if (PrintMalloc && tty != NULL) - fprintf(stderr, "os::free " SIZE_FORMAT " bytes --> " PTR_FORMAT "\n", size, memblock); + fprintf(stderr, "os::free " SIZE_FORMAT " bytes --> " PTR_FORMAT "\n", size, (uintptr_t)memblock); } else if (PrintMalloc && tty != NULL) { // tty->print_cr("os::free %p", memblock); - fprintf(stderr, "os::free " PTR_FORMAT "\n", memblock); + fprintf(stderr, "os::free " PTR_FORMAT "\n", (uintptr_t)memblock); } #endif ::free((char*)memblock - space_before);