RFR: 8272723: Don't use Access API to access primitive fields

Aleksey Shipilev shade at openjdk.java.net
Thu Aug 19 14:47:26 UTC 2021


On Thu, 19 Aug 2021 14:27:14 GMT, Roman Kennke <rkennke at openjdk.org> wrote:

> For earlier incarnations of Shenandoah, we needed to put barriers before accessing primitive fields. This is no longer necessary nor implemented/used by any GC, and we should simplify the code to do plain access instead.
> 
> (We may want to remove remaining primitive access machinery in the Access API soon)
> 
> Testing:
>  - [ ] tier1
>  - [ ] tier2
>  - [ ] hotspot_gc

I think you missed the spots at least in in `oop.cpp` and `typeArrayOop.inline.hpp` too. Need to grep for `HeapAccess` in the entire Hotspot?

-------------

PR: https://git.openjdk.java.net/jdk/pull/5187


More information about the hotspot-dev mailing list