File: lowering_heap_allocation.patch

package info (click to toggle)
snpeff 5.2.f%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 701,384 kB
  • sloc: java: 62,547; perl: 2,279; sh: 1,185; python: 744; xml: 507; makefile: 50
file content (21 lines) | stat: -rw-r--r-- 531 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: lowering heap allocation so that it passes on all supported
 architectures; keeping it as is for 64-bit arches.
Author: Pierre Gruet <pgt@debian.org>
Forwarded: not-needed
Last-Update: 2023-01-20

--- a/scripts/snpEff
+++ b/scripts/snpEff
@@ -15,7 +15,11 @@
 
 jardir=/usr/share/java
 
-default_jvm_mem_opts="-Xms1g -Xmx8g"
+if dpkg --print-architecture | grep -q "64" ; then
+  default_jvm_mem_opts="-Xms1g -Xmx8g"
+else
+  default_jvm_mem_opts="-Xms1g -Xmx3800m"
+fi
 jvm_mem_opts=""
 jvm_prop_opts=""
 pass_args=""