RFR: 8199328: Fix unsafe field accesses in heap dumper

Per Liden per.liden at oracle.com
Fri Mar 9 06:32:28 UTC 2018


Thanks Thomas, Aleksey and Erik for reviewing.

/Per

On 2018-03-08 16:41, Erik Österlund wrote:
> Hi Per,
> 
> Looks good.
> 
> Thanks,
> /Erik
> 
> On 2018-03-08 15:01, Per Liden wrote:
>> The heap dumper, more specifically the 
>> DumperSupport::dump_field_value() function, is doing unsafe raw loads 
>> of fields in heap objects. Those loads should go thru the access API.
>>
>> Bug: https://bugs.openjdk.java.net/browse/JDK-8199328
>> Webrev: http://cr.openjdk.java.net/~pliden/8199328/webrev.0/
>>
>> Testing: manual dumping using jcmd GC.heap_dump, awaiting hs-tier1-3 
>> results
>>
>> /Per
> 


More information about the hotspot-dev mailing list