dragonwell-project / dragonwell8

Alibaba Dragonwell8 JDK
http://dragonwell-jdk.io
GNU General Public License v2.0
4.21k stars 497 forks source link

[Misc] Adding barriers on JVM #458

Closed sandlerwang closed 1 year ago

sandlerwang commented 1 year ago
Summary:  this patch addes mem barriers in JVM.
Including:
8154750: Add missing OrderAccess operations to ClassLoaderData

lock-free data structures https://bugs.openjdk.org/browse/JDK-8154750 8233073: Make BitMap accessors more memory ordering friendly https://bugs.openjdk.org/browse/JDK-8233073 8221584: SIGSEGV in os::PlatformEvent::unpark() in JvmtiRawMonitor::raw_exit while posting method exit event https://bugs.openjdk.org/browse/JDK-8221584 8166197: assert(RelaxAssert || w != Thread::current()->_MutexEvent) failed: invariant 8164207: Checking missing load-acquire in relation to _pd_set in dictionary.cpp https://bugs.openjdk.org/browse/JDK-8164207 and adding a loadload barrier in CMS

Test Plan: e-commerce online tests

Reviewers: maoliang.ml, lxw263044

Issue: https://github.com/alibaba/dragonwell8/issues/457

Reviewed-by: mmyxym, kuaiwei

Issue: https://github.com/alibaba/dragonwell8/issues/330
CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.