Browse Source

Adding support for 'full' patches

Also, minor fixes to build.gradle
tags/light-jdk8u5+36
Ivan Dubrov 10 years ago
parent
commit
ff9d7a5d17
2 changed files with 14 additions and 6 deletions
  1. 9
    6
      build.gradle
  2. 5
    0
      gradle.properties

+ 9
- 6
build.gradle View File

args 'status' args 'status'
standardOutput os standardOutput os
} }
// Purge unversioned files
def str = os.toString() def str = os.toString()
def matcher = str =~ /(?m)^\?\s+(.*)$/ def matcher = str =~ /(?m)^\?\s+(.*)$/
matcher.each { matcher.each {
// Use hg import since ant.patchfile requires 'patch' to be installed // Use hg import since ant.patchfile requires 'patch' to be installed
exec { exec {
executable 'hg' executable 'hg'
args 'import', '--no-commit', "../patches/light-${hotspotTag}.patch"
args 'import', '--no-commit', "../patches/${flavor}-${hotspotTag}.patch"
} }
} }


test { test {
executable new File(targetJreFile, 'bin/java') executable new File(targetJreFile, 'bin/java')


jvmArgs '-XX:LogFile=build/hotspot.log'
jvmArgs "-XXaltjvm=${jvmName}" jvmArgs "-XXaltjvm=${jvmName}"
jvmArgs '-javaagent:../agent/build/libs/agent.jar' jvmArgs '-javaagent:../agent/build/libs/agent.jar'
if (arch == Arch.X86_64) { if (arch == Arch.X86_64) {
// Helper task to run make targets against hotspot // Helper task to run make targets against hotspot
class InvokeMake extends org.gradle.api.tasks.Exec { class InvokeMake extends org.gradle.api.tasks.Exec {
InvokeMake() { InvokeMake() {
def root = project.rootProject
logging.captureStandardOutput LogLevel.INFO logging.captureStandardOutput LogLevel.INFO
if (project.rootProject.os != Os.WINDOWS) {
if (root.os != Os.WINDOWS) {
commandLine 'make', '-C', 'make' commandLine 'make', '-C', 'make'
} else { } else {
// Using launcher script // Using launcher script
commandLine 'cmd', '/c', '..\\build.cmd' commandLine 'cmd', '/c', '..\\build.cmd'
environment ARCH: project.rootProject.arch == Arch.X86 ? 'x86' : 'x64'
environment ARCH: root.arch == Arch.X86 ? 'x86' : 'x64'
} }
args 'OPENJDK=true' args 'OPENJDK=true'
args "HOTSPOT_BUILD_VERSION=dcevmlight-${project.rootProject.buildNumber}"
args "ARCH_DATA_MODEL=${project.rootProject.arch.bits}"
args "ALT_BOOTDIR=${project.rootProject.jre.replace('\\', '/')}/.."
args "HOTSPOT_BUILD_VERSION=dcevm${root.flavor}-${root.buildNumber}"
args "ARCH_DATA_MODEL=${root.arch.bits}"
args "ALT_BOOTDIR=${root.jre.replace('\\', '/')}/.."
// Replacing backslashes is essential for Windows! // Replacing backslashes is essential for Windows!
args 'COMPILER_WARNINGS_FATAL=false' // Clang is very serious about warnings args 'COMPILER_WARNINGS_FATAL=false' // Clang is very serious about warnings
args 'HOTSPOT_BUILD_JOBS=4' args 'HOTSPOT_BUILD_JOBS=4'

+ 5
- 0
gradle.properties View File

# Which JVM kind to use for testing, fastdebug (produces better crash reports) or product (faster). # Which JVM kind to use for testing, fastdebug (produces better crash reports) or product (faster).
kind=fastdebug kind=fastdebug


# Which flavor of DCEVM to use, full (supports most redefinitons) or light (more JDK versions supported)
flavor=light

# If should use compressed oops (-XX:+UseCompressedOops) or not for testing. # If should use compressed oops (-XX:+UseCompressedOops) or not for testing.
oops=compressed oops=compressed


# Tag to base DCEVM on # Tag to base DCEVM on
hotspotTag=jdk8u5-b13 hotspotTag=jdk8u5-b13
#hotspotTag=jdk7u51-b13 #hotspotTag=jdk7u51-b13
#hotspotTag=jdk7u45-b08
#hotspotTag=jdk7u40-b43


# Repository to clone hotspot from # Repository to clone hotspot from
hotspotRepository=http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot hotspotRepository=http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot

Loading…
Cancel
Save