diff --git a/src/java.base/share/classes/java/lang/VirtualThread.java b/src/java.base/share/classes/java/lang/VirtualThread.java index ed6405c3e20..efec3b90bf0 100644 --- a/src/java.base/share/classes/java/lang/VirtualThread.java +++ b/src/java.base/share/classes/java/lang/VirtualThread.java @@ -22,6 +22,11 @@ * or visit www.oracle.com if you need additional information or have any * questions. */ +/* + * =========================================================================== + * (c) Copyright IBM Corp. 2022, 2022 All Rights Reserved + * =========================================================================== + */ package java.lang; import java.security.AccessController; @@ -1008,6 +1013,7 @@ private void setCarrierThread(Thread carrier) { private static native void registerNatives(); static { registerNatives(); + notifyJvmtiEvents = true; } /**