hg: hsx/hotspot-gc/hotspot: 8012715: G1: GraphKit accesses PtrQueue::_index as int but is size_t

john.cuthbertson at oracle.com john.cuthbertson at oracle.com
Thu Apr 25 07:10:21 UTC 2013


Changeset: d50cc62e94ff
Author:    johnc
Date:      2013-04-24 14:48 -0700
URL:       http://hg.openjdk.java.net/hsx/hotspot-gc/hotspot/rev/d50cc62e94ff

8012715: G1: GraphKit accesses PtrQueue::_index as int but is size_t
Summary: In graphKit INT operations were generated to access PtrQueue::_index which has type size_t. This is 64 bit on 64-bit machines. No problems occur on little endian machines as long as the index fits into 32 bit, but on big endian machines the upper part is read, which is zero. This leads to unnecessary branches to the slow path in the runtime.
Reviewed-by: twisti, johnc
Contributed-by: Martin Doerr <martin.doerr at sap.com>

! src/share/vm/opto/graphKit.cpp




More information about the hotspot-gc-dev mailing list