RFR: 8167659: Access of mark word should use oopDesc::mark_offset_in_bytes() instead of '0' (original) (raw)
Roman Kennke rkennke at redhat.com
Thu Oct 13 09:40:25 UTC 2016
- Previous message: RFR(s): 8167494: Deprecate AutoGCSelectPauseMillis
- Next message: RFR: 8167659: Access of mark word should use oopDesc::mark_offset_in_bytes() instead of '0'
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In several places in Hotspot's assembly routines, we're using Address(obj, 0) to access the object's mark word. This is bad style and makes it very hard to find all the places where the mark word is used. It should use Address(obj, oopDesc::mark_offset_in_bytes()) instead.
The change addresses the issue in x86 and aarch64. I'm not familiar with the othe arches, maybe somebody wants to check and fill them in?
http://cr.openjdk.java.net/~rkennke/markoffset-hs/webrev.00/
Roman
- Previous message: RFR(s): 8167494: Deprecate AutoGCSelectPauseMillis
- Next message: RFR: 8167659: Access of mark word should use oopDesc::mark_offset_in_bytes() instead of '0'
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]