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
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.
Syntax modification, var completed = new AtomicBoolean(); changed to AtomicBoolean completed = new AtomicBoolean();.
Deleted Reference.reachabilityFence(lock); as the Reference class in KonaFiber does not have this method.
Code Adjustment
@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.var completed = new AtomicBoolean();
changed toAtomicBoolean completed = new AtomicBoolean();
.Reference.reachabilityFence(lock);
as the Reference class in KonaFiber does not have this method.