diff options
author | Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> | 2017-05-30 15:54:10 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2017-05-30 15:56:25 +0200 |
commit | 93c103ab594fae918743f50ec8346854f0a85f1a (patch) | |
tree | af5b22c3917e9220919d9cd0c589f638d1aac1f2 /gnu | |
parent | 27fd13c3c2701204f48fe0012438edbb91957dfc (diff) | |
download | guix-93c103ab594fae918743f50ec8346854f0a85f1a.tar.gz |
gnu: classpath-devel: Ensure initial heap size is less than maximum.
Fixes <https://bugs.gnu.org/27142>. * gnu/packages/java.scm (classpath-devel)[arguments]: Pass Xms option with a value lower than Xmx.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/java.scm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index b422a1effe..9a129b8d91 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -640,11 +640,16 @@ the standard javac executable. The tool runs on JamVM instead of SableVM."))) (base32 "1v2rww76ww322mpg3s12a1kkc6gkp31bm9gcxs532h0wq285fiw4")))) (arguments - `(#:configure-flags + `(#:make-flags + ;; Ensure that the initial heap size is smaller than the maximum + ;; size. By default only Xmx is set, which can lead to invalid + ;; memory settings on some machines with a lot of memory. + '("JAVAC_MEM_OPT=-J-Xms512M -J-Xmx768M") + #:configure-flags (list (string-append "--with-ecj-jar=" (assoc-ref %build-inputs "ecj-bootstrap") "/share/java/ecj-bootstrap.jar") - (string-append "JAVAC=" + (string-append "--with-javac=" (assoc-ref %build-inputs "ecj-javac-wrapper") "/bin/javac") (string-append "JAVA=" |