File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -476,8 +476,6 @@ void ArgParser::setupMaxHeapAndStack(list<string> userOptions) {
476
476
if (!maxStack) {
477
477
javaOptions.push_back (" -Xss" + stackSize);
478
478
}
479
- javaOptions.push_back (" -Djruby.memory.max=" + heapSize);
480
- javaOptions.push_back (" -Djruby.stack.max=" + stackSize);
481
479
}
482
480
483
481
void ArgParser::constructBootClassPath () {
Original file line number Diff line number Diff line change 95
95
end
96
96
97
97
it "should default to 500m max heap" do
98
- jruby_launcher_args ( "" ) . should include ( "-Xmx500m" , "-Djruby.memory.max=500m" )
98
+ jruby_launcher_args ( "" ) . should include ( "-Xmx500m" )
99
99
end
100
100
101
101
it "should allow max heap to be overridden" do
102
- jruby_launcher_args ( "-J-Xmx256m" ) . should include ( "-Xmx256m" , "-Djruby.memory.max=256m" )
102
+ jruby_launcher_args ( "-J-Xmx256m" ) . should include ( "-Xmx256m" )
103
103
end
104
104
105
105
it "should default to 2048k max stack" do
106
- jruby_launcher_args ( "" ) . should include ( "-Xss2048k" , "-Djruby.stack.max=2048k" )
106
+ jruby_launcher_args ( "" ) . should include ( "-Xss2048k" )
107
107
end
108
108
109
109
it "should allow max stack to be overridden" do
110
- jruby_launcher_args ( "-J-Xss512k" ) . should include ( "-Xss512k" , "-Djruby.stack.max=512k" )
110
+ jruby_launcher_args ( "-J-Xss512k" ) . should include ( "-Xss512k" )
111
111
end
112
112
113
113
it "should add the contents of the CLASSPATH environment variable" do
209
209
# JRUBY-6016
210
210
it "should honor JAVA_MEM" do
211
211
with_environment "JAVA_MEM" => "-Xmx768m" do
212
- jruby_launcher_args ( "" ) . should include ( "-Xmx768m" , "-Djruby.memory.max=768m" )
212
+ jruby_launcher_args ( "" ) . should include ( "-Xmx768m" )
213
213
end
214
214
end
215
215
216
216
it "should honor JAVA_STACK" do
217
217
with_environment "JAVA_STACK" => "-Xss3072k" do
218
- jruby_launcher_args ( "" ) . should include ( "-Xss3072k" , "-Djruby.stack.max=3072k" )
218
+ jruby_launcher_args ( "" ) . should include ( "-Xss3072k" )
219
219
end
220
220
end
221
221
You can’t perform that action at this time.
0 commit comments