hg: shenandoah/jdk9/hotspot: jweak handling misses barriers.
Andrew Haley
aph at redhat.com
Thu Apr 20 09:14:08 UTC 2017
On 20/04/17 09:40, Aleksey Shipilev wrote:
>> Can we improve
>>
>> if (UseG1GC || UseShenandoahGC)
>>
>> to
>>
>> if (theCollector.needsWriteBarriers())
>>
>> or something?
> That is inventing the GC interface, and we don't know the correct form for it yet.
>
> Blindly introducing it gives us nothing, I think. New uses would still be
> missed. Existing uses would have different forms, depending on what barriers are
> enabled in Shenandoah. Whatever we do, it would have to be re-adapted to GC
> interface later anyway. Just spreading "|| UseShenandoahGC" around seems to be
> the lesser evil.
Ewww, I guess you're right. It's really horrible, though, but
perhaps less horrible than all of the alternatives.
Andrew.
More information about the shenandoah-dev
mailing list