JDK-6991197 : G1: specialize deal_with_reference() for narrowOop*
Type:Enhancement
Component:hotspot
Sub-Component:gc
Affected Version:hs20
Priority:P3
Status:Resolved
Resolution:Fixed
OS:generic
CPU:generic
Submitted:2010-10-12
Updated:2014-07-29
Resolved:2014-01-31
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
G1ParScanThreadState::deal_with_reference(T*) should be specialized for narrowOop*; doing so may help performance when compressed oops are enabled.
Comments
EVALUATION
deal_with_reference(T*) first checks whether the partial array mask bit is set and branches accordingly. This check is unnecessary when T is narrowOop, so the test and branch can be eliminated for narrowOop* (presumably the most common type processed) if the method is specialized.