MINOR: Enable JRuby AOT compilation and turn JIT threshold down to 0

Fixes #7783
This commit is contained in:
Armin 2017-07-24 15:14:37 +02:00 committed by Armin Braun
parent c86a6f2923
commit a1c067dd9a
2 changed files with 5 additions and 2 deletions

View file

@ -53,6 +53,9 @@
# Turn on JRuby invokedynamic # Turn on JRuby invokedynamic
-Djruby.compile.invokedynamic=true -Djruby.compile.invokedynamic=true
# Force Compilation
-Djruby.compile.mode=FORCE
-Djruby.jit.threshold=0
## heap dumps ## heap dumps

View file

@ -18,7 +18,7 @@ describe "Test Logstash service when config reload is enabled" do
let(:timeout_seconds) { 5 } let(:timeout_seconds) { 5 }
let(:initial_port) { random_port } let(:initial_port) { random_port }
let(:reload_port) { random_port } let(:reload_port) { random_port }
let(:retry_attempts) { 10 } let(:retry_attempts) { 60 }
let(:output_file1) { Stud::Temporary.file.path } let(:output_file1) { Stud::Temporary.file.path }
let(:output_file2) { Stud::Temporary.file.path } let(:output_file2) { Stud::Temporary.file.path }
let(:sample_data) { '74.125.176.147 - - [11/Sep/2014:21:50:37 +0000] "GET /?flav=rss20 HTTP/1.1" 200 29941 "-" "FeedBurner/1.0 (http://www.FeedBurner.com)"' } let(:sample_data) { '74.125.176.147 - - [11/Sep/2014:21:50:37 +0000] "GET /?flav=rss20 HTTP/1.1" 200 29941 "-" "FeedBurner/1.0 (http://www.FeedBurner.com)"' }
@ -82,4 +82,4 @@ describe "Test Logstash service when config reload is enabled" do
expect(re["clientip"]).to eq("74.125.176.147") expect(re["clientip"]).to eq("74.125.176.147")
expect(re["response"]).to eq(200) expect(re["response"]).to eq(200)
end end
end end