Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

See and use more than 64 CPUs on Windows #25087

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/main/cpp/blaze.cc
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,14 @@ static vector<string> GetServerExeArgs(const blaze_util::Path &jvm_path,
// https://github.com/openjdk/jdk/blob/2faf8b8d582183275b1fdc92313a1c63c1753e80/src/java.base/share/classes/sun/nio/fs/AbstractWatchKey.java#L40
result.push_back("-Djdk.nio.file.WatchService.maxEventsPerPoll=10000");

#if defined(_WIN32)
// See and use more than 64 CPUs on Windows.
// https://bugs.openjdk.org/browse/JDK-6942632
result.push_back("-XX:+IgnoreUnrecognizedVMOptions");
result.push_back("-XX:+UseAllWindowsProcessorGroups");
fmeum marked this conversation as resolved.
Show resolved Hide resolved
result.push_back("-XX:-IgnoreUnrecognizedVMOptions");
#endif

if (startup_options.host_jvm_debug) {
BAZEL_LOG(USER)
<< "Running host JVM under debugger (listening on TCP port 5005).";
Expand Down
Loading