Commit bf42b975 authored by Jan S's avatar Jan S Committed by skylot

build: compile for Java 8; enable G1GC on Java 8 (PR #436)

parent f8c0449d
...@@ -7,6 +7,9 @@ apply plugin: 'application' ...@@ -7,6 +7,9 @@ apply plugin: 'application'
mainClassName = 'jadx.gui.JadxGUI' mainClassName = 'jadx.gui.JadxGUI'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
dependencies { dependencies {
compile(project(":jadx-core")) compile(project(":jadx-core"))
compile(project(":jadx-cli")) compile(project(":jadx-cli"))
...@@ -42,7 +45,8 @@ jar { ...@@ -42,7 +45,8 @@ jar {
} }
startScripts { startScripts {
defaultJvmOpts = ['-Xms128M', '-Xmx4g', '-Dawt.useSystemAAFontSettings=lcd', '-Dswing.aatext=true'] // The option -XX:+UseG1GC is only relevant for Java 8. Starting with Java 9 G1GC is already the default GC
defaultJvmOpts = ['-Xms128M', '-Xmx4g', '-Dawt.useSystemAAFontSettings=lcd', '-Dswing.aatext=true', '-XX:+UseG1GC']
doLast { doLast {
def str = windowsScript.text def str = windowsScript.text
str = str.replaceAll('java.exe', 'javaw.exe') str = str.replaceAll('java.exe', 'javaw.exe')
...@@ -61,7 +65,8 @@ launch4j { ...@@ -61,7 +65,8 @@ launch4j {
copyright = 'Skylot' copyright = 'Skylot'
windowTitle = 'jadx' windowTitle = 'jadx'
companyName = 'jadx' companyName = 'jadx'
jvmOptions = ['-Dawt.useSystemAAFontSettings=lcd', '-Dswing.aatext=true'] jreMinVersion = '1.8.0'
jvmOptions = ['-Dawt.useSystemAAFontSettings=lcd', '-Dswing.aatext=true', '-XX:+UseG1GC']
jreRuntimeBits = "64" jreRuntimeBits = "64"
initialHeapPercent = 5 initialHeapPercent = 5
maxHeapSize = 4096 maxHeapSize = 4096
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment