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.
This commit is contained in:
parent
27fd13c3c2
commit
93c103ab59
|
@ -640,11 +640,16 @@ the standard javac executable. The tool runs on JamVM instead of SableVM.")))
|
||||||
(base32
|
(base32
|
||||||
"1v2rww76ww322mpg3s12a1kkc6gkp31bm9gcxs532h0wq285fiw4"))))
|
"1v2rww76ww322mpg3s12a1kkc6gkp31bm9gcxs532h0wq285fiw4"))))
|
||||||
(arguments
|
(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="
|
(list (string-append "--with-ecj-jar="
|
||||||
(assoc-ref %build-inputs "ecj-bootstrap")
|
(assoc-ref %build-inputs "ecj-bootstrap")
|
||||||
"/share/java/ecj-bootstrap.jar")
|
"/share/java/ecj-bootstrap.jar")
|
||||||
(string-append "JAVAC="
|
(string-append "--with-javac="
|
||||||
(assoc-ref %build-inputs "ecj-javac-wrapper")
|
(assoc-ref %build-inputs "ecj-javac-wrapper")
|
||||||
"/bin/javac")
|
"/bin/javac")
|
||||||
(string-append "JAVA="
|
(string-append "JAVA="
|
||||||
|
|
Loading…
Reference in New Issue