RFR: 8260309: Shenandoah: Clean up ShenandoahBarrierSet
Aleksey Shipilev
shade at openjdk.java.net
Fri Jan 29 14:34:57 UTC 2021
On Fri, 22 Jan 2021 19:03:14 GMT, Roman Kennke <rkennke at openjdk.org> wrote:
> We collected some cruft in ShenandoahBarrierSet. Time to clean it up.
>
> This fixes/removes a number of includes, fixes some comments and it also removes is_a() and is_aligned() which look like leftovers/requirements from earlier incarnations of the superclass BarrierSet. Using the override keyword would be useful for such situations (btw, are we ok to start using override, nullptr, auto etc in Shenandoah, or do we want to keep it C++ for backporting ease?)
>
> One thing I was not sure about is the ShenandoahHeap* _heap field. Making it const will likely help the compiler avoid repeated access (e.g. in a number of perf-critical paths like the LRB impl). However, maybe we should get rid of the field altogether and make it explicitely using ShenandoahHeap::heap() and avoid repeated access instead of helping the compiler and hoping for the best?
>
> Testing:
> - [x] hotspot_gc_shenandoah release, fastdebug
What is up with this PR? There are no recorded changes, and tests are failing ;)
-------------
PR: https://git.openjdk.java.net/jdk/pull/2202
More information about the shenandoah-dev
mailing list