This is an automated email from the ASF dual-hosted git repository.

He-Pin pushed a commit to branch pr-2872
in repository https://gitbox.apache.org/repos/asf/pekko.git

commit 0299bd3065c165a5198f2704e7fa0a6b0051d95e
Author: 虎鸣 <[email protected]>
AuthorDate: Tue Apr 21 00:50:55 2026 +0800

    move virtualize=on from global reference.conf to test-specific 
application.conf
    
    Addresses review comment from pjfanning: avoid making virtualize a
    global setting that affects all stream-testkit users. Instead, enable
    it only in tests that need it (JDK 21+ FJP scheduling regression).
    
    References: #2870
---
 stream-testkit/src/test/resources/reference.conf |  7 -------
 stream-tests/src/test/resources/application.conf | 14 ++++++++++++++
 2 files changed, 14 insertions(+), 7 deletions(-)

diff --git a/stream-testkit/src/test/resources/reference.conf 
b/stream-testkit/src/test/resources/reference.conf
index 1f58c39527..990b427747 100644
--- a/stream-testkit/src/test/resources/reference.conf
+++ b/stream-testkit/src/test/resources/reference.conf
@@ -14,13 +14,6 @@ pekko.test.stream-dispatcher {
   fork-join-executor {
     parallelism-min = 8
     parallelism-max = 8
-    # Enable virtual threads on JDK 21+. Virtual threads (Project Loom) bypass 
the
-    # ForkJoinPool compensation-thread starvation issue (JDK-8300995) that 
causes
-    # spurious test timeouts on JDK 21+ when actors block on reply futures in 
FIFO mode.
-    # On JDK < 21 this flag is silently ignored 
(VirtualThreadSupport.isSupported = false).
-    # The required --add-opens flags (java.base/jdk.internal.misc, 
java.base/java.lang)
-    # are already supplied by JdkOptions.scala for JDK 9+.
-    virtualize = on
   }
   mailbox-requirement = 
"org.apache.pekko.dispatch.UnboundedMessageQueueSemantics"
 }
diff --git a/stream-tests/src/test/resources/application.conf 
b/stream-tests/src/test/resources/application.conf
new file mode 100644
index 0000000000..17813f0ca8
--- /dev/null
+++ b/stream-tests/src/test/resources/application.conf
@@ -0,0 +1,14 @@
+# SPDX-License-Identifier: Apache-2.0
+
+# Enable virtual threads on JDK 21+ for the stream test dispatcher.
+# Virtual threads (Project Loom) bypass the ForkJoinPool compensation-thread
+# starvation issue (JDK-8300995) that causes spurious test timeouts on JDK 21+
+# when actors block on reply futures in FIFO mode.
+# On JDK < 21 this flag is silently ignored (VirtualThreadSupport.isSupported 
= false).
+# The required --add-opens flags (java.base/jdk.internal.misc, 
java.base/java.lang)
+# are already supplied by JdkOptions.scala for JDK 9+.
+pekko.test.stream-dispatcher {
+  fork-join-executor {
+    virtualize = on
+  }
+}


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to