RFR: 8274024: Use regular accessors to internal fields of oopDesc

Stefan Karlsson stefank at openjdk.java.net
Thu Sep 23 15:16:01 UTC 2021


On Mon, 20 Sep 2021 18:59:34 GMT, Roman Kennke <rkennke at openjdk.org> wrote:

> Currently, we are using 'raw' accessors to initialize the mark, Klass*, (array-)length and klass_gap of oops. This is ugly and confusing and we should just use the regular accessors.
> 
> Testing:
>  - [ ] tier1
>  - [ ] tier2
>  - [ ] hotspot_gc

I think I agree with David that we should try to stay away from cast something to an oop before the object is fully created.

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

Changes requested by stefank (Reviewer).

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


More information about the hotspot-dev mailing list