dragonwell-project / dragonwell11

Alibaba Dragonwell11 JDK
https://www.aliyun.com/product/dragonwell
GNU General Public License v2.0
558 stars 113 forks source link

[GC] Add option G1BarrierSimple to use simple g1 post barrier #829

Closed mmyxym closed 4 months ago

mmyxym commented 4 months ago

Summary: Provide option G1BarrierSimple to use simple G1 post barrier for better mutator performance

Testing: CI pipeline

Reviewers: yude, yifeng

Issue: https://github.com/dragonwell-project/dragonwell11/issues/828

linade commented 4 months ago

PtrQueueSet::process_or_enqueue_complete_buffer also had changes in the original patch, wonder if it's missed

mmyxym commented 4 months ago

PtrQueueSet::process_or_enqueue_complete_buffer also had changes in the original patch, wonder if it's missed

Add assertion to check dcqs empty

mmyxym commented 4 months ago

G1BarrierSimple is only supported on aarch64 and x86 now, so maybe it should be disabled on other platform

Add the platform restriction.