Skip to content

Commit

Permalink
[build] remove MaxPermSize (#5251)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahorek authored and kares committed Jul 16, 2018
1 parent 7026bae commit 52bd002
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion maven/jruby/src/templates/hellowarld/Mavenfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ profile 'cuba' do
end

profile 'rails4' do
properties :framework => 'rails4', 'wildfly.javaOpts' => '-XX:MaxPermSize=512m'
properties :framework => 'rails4', 'wildfly.javaOpts' => '-XX:MaxMetaspaceSize=512m'
end

profile 'webrick' do
Expand Down
2 changes: 1 addition & 1 deletion rakelib/commands.rake
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def mspec(mspec_options = {}, java_options = {}, &code)
arg :line => "-T -J-Demma.coverage.out.merge=true"
arg :line => "-T -J-Demma.verbosity.level=silent"
arg :line => "-T -J#{JVM_MODEL}" if JVM_MODEL
arg :line => "-T -J-XX:MaxPermSize=512M" if ENV_JAVA["java.version"] !~ /\A1\.8/
arg :line => "-T -J-XX:MaxMetaspaceSize=512M"
arg :line => "-T --debug"
arg :line => "-f #{ms[:format]}"
arg :line => "-B #{ms[:spec_config]}" if ms[:spec_config]
Expand Down
2 changes: 1 addition & 1 deletion rakelib/test.rake
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ namespace :test do
task :rake_targets => long_tests
task :extended => long_tests

max_meta_size = ENV_JAVA['java.specification.version'] > '1.7' ? '-XX:MaxMetaspaceSize' : '-XX:MaxPermSize'
max_meta_size = "-XX:MaxMetaspaceSize"
get_meta_size = proc do |default_size = 452|
(ENV['JAVA_OPTS'] || '').index(max_meta_size) || (ENV['JRUBY_OPTS'] || '').index(max_meta_size) ?
'' : "-J#{max_meta_size}=#{default_size}M"
Expand Down

0 comments on commit 52bd002

Please sign in to comment.