From e53831fc5c499bca4a89d004d3b4028f7a93b597 Mon Sep 17 00:00:00 2001 From: Googler Date: Mon, 23 Sep 2024 16:37:22 -0700 Subject: [PATCH] Add `-Djava.lang.Thread.allowVirtualThreads=true` as a startup JVM flag PiperOrigin-RevId: 677985968 Change-Id: I622cb57ff11d2f867ac75400113e19da25ad305f --- src/main/cpp/startup_options.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/cpp/startup_options.cc b/src/main/cpp/startup_options.cc index ede101631797b2..fd90d73f65ca3e 100644 --- a/src/main/cpp/startup_options.cc +++ b/src/main/cpp/startup_options.cc @@ -603,6 +603,8 @@ blaze_exit_code::ExitCode StartupOptions::AddJVMArguments( // ourselves to). result->push_back("-XX:-MaxFDLimit"); + result->push_back("-Djava.lang.Thread.allowVirtualThreads=true"); + return AddJVMMemoryArguments(server_javabase, result, user_options, error); }