Skip to content

Commit

Permalink
Revert "jdk: use parallel old gc and disable compact strings"
Browse files Browse the repository at this point in the history
This reverts commit dbe5efe.
  • Loading branch information
buchgr committed Aug 7, 2018
1 parent fb9215a commit c4670db
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
6 changes: 1 addition & 5 deletions src/main/cpp/blaze.cc
Original file line number Diff line number Diff line change
Expand Up @@ -420,12 +420,8 @@ static vector<string> GetArgumentArray(

// TODO(b/109998449): only assume JDK >= 9 for embedded JDKs
if (!globals->options->GetEmbeddedJavabase().empty()) {
// In JDK9 we have seen a slow down when using the default G1 collector
// and thus switch back to parallel gc.
result.push_back("-XX:+UseParallelOldGC");
// see: https://github.com/google/protobuf/issues/3781

// quiet warnings from com.google.protobuf.UnsafeUtil,
// see: https://github.com/google/protobuf/issues/3781
result.push_back("--add-opens=java.base/java.nio=ALL-UNNAMED");
}

Expand Down
4 changes: 0 additions & 4 deletions tools/jdk/default_java_toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ JDK8_JVM_OPTS = [
]

JDK9_JVM_OPTS = [
# In JDK9 we have seen a ~30% slow down in JavaBuilder performance when using
# G1 collector and having compact strings enabled.
"-XX:+UseParallelOldGC",
"-XX:-CompactStrings",
# Allow JavaBuilder to access internal javac APIs.
"--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED",
"--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
Expand Down

0 comments on commit c4670db

Please sign in to comment.