Tencent / TencentKona-8

Tencent Kona is a no-cost, production-ready distribution of the Open Java Development Kit (OpenJDK), Long-term support(LTS) with quarterly updates. Tencent Kona serves as the default JDK internally at Tencent Cloud for cloud computing and other Java applications.
Other
938 stars 146 forks source link

Transplant jtreg test VirtualThreadPinnedEventThrows.java from Loom #122

Closed ywj0101 closed 1 year ago

ywj0101 commented 1 year ago

Code Adjustment

  1. Removed @modules java.base/jdk.internal.event and @compile/module=java.base jdk/internal/event/VirtualThreadPinnedEvent.java, because KonaFiber is not in the current module, adopting the method of directly importing the Event class and VirtualThreadPinnedEvent class.
  2. Syntax modification, var completed = new AtomicBoolean(); changed to AtomicBoolean completed = new AtomicBoolean();.
  3. Deleted Reference.reachabilityFence(lock); as the Reference class in KonaFiber does not have this method.
tencent-adm commented 1 year ago

CLA assistant check
All committers have signed the CLA.