Skip to content

Commit

Permalink
Add -Djava.lang.Thread.allowVirtualThreads=true as a startup JVM flag
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 677985968
Change-Id: I622cb57ff11d2f867ac75400113e19da25ad305f
  • Loading branch information
cushon authored and copybara-github committed Sep 23, 2024
1 parent 7aa9e77 commit e53831f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/cpp/startup_options.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit e53831f

Please sign in to comment.