diff options
author | Fabian Meumertzheim <meumertzheim@code-intelligence.com> | 2021-09-22 19:46:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-22 19:46:10 +0200 |
commit | a8b443cccedccac19f192c63fdb0e8cb224f311a (patch) | |
tree | bed41b68aa31eda6644894525577c32986bf50a5 /driver/jvm_tooling.cpp | |
parent | 3e0e4f177fdb8ecff1c707fed83c16c094b181c9 (diff) | |
download | jazzer-api-a8b443cccedccac19f192c63fdb0e8cb224f311a.tar.gz |
Optimize GC for high throughput (#189)
https://docs.oracle.com/en/java/javase/11/gctuning/available-collectors.html#GUID-414C9D95-297E-4EE3-B0D9-36F158A83393
Diffstat (limited to 'driver/jvm_tooling.cpp')
-rw-r--r-- | driver/jvm_tooling.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/driver/jvm_tooling.cpp b/driver/jvm_tooling.cpp index e90519f8..98b5fd73 100644 --- a/driver/jvm_tooling.cpp +++ b/driver/jvm_tooling.cpp @@ -234,6 +234,8 @@ JVM::JVM(const std::string &executable_path) { // This may hurt performance, but also helps find flaky bugs. options.push_back( JavaVMOption{.optionString = (char *)"-XX:-OmitStackTraceInFastThrow"}); + // Optimize GC for high throughput rather than low latency. + options.push_back(JavaVMOption{.optionString = (char *)"-XX:+UseParallelGC"}); // add additional jvm options set through command line flags std::vector<std::string> jvm_args; |