view domake @ 1941:79d04223b8a5

Added caching for resolved types and resolved fields. This is crucial, because the local load elimination will lead to wrong results, if field equality (of two RiField objects with the same object and the same RiType) is not given. The caching makes sure that the default equals implementation is sufficient.
author Thomas Wuerthinger <wuerthinger@ssw.jku.at>
date Tue, 28 Dec 2010 18:33:26 +0100
parents 1f81c0d18c75
children 9aad24bf09ed
line wrap: on
line source

#!/bin/bash

test -n "$JDK7" || { echo "Need to set JDK7 environment variable to the base of a JDK 1.7"; exit 1; }
test -n "$JDK7G" || { echo "Need to set JDK7G environment variable to the base of a JDK 1.7"; exit 1; }

# Resolve location of this script
me="${BASH_SOURCE[0]}"
while [ -h "$me" ]; do
    me=`readlink -e "$me"`
done
graal_home=$(cd `dirname $me`; pwd)

grep '-client KNOWN' $JDK7/jre/lib/amd64/jvm.cfg >/dev/null
if [ $? -ne 0 ] ; then
    echo "The setting for -client in $JDK7/jre/lib/amd64/jvm.cfg must be:"
    echo
    echo "  -client KNOWN"
    echo
    exit 1
fi

grep '-client KNOWN' $JDK7G/jre/lib/amd64/jvm.cfg >/dev/null
if [ $? -ne 0 ] ; then
    echo "The setting for -client in $JDK7G/jre/lib/amd64/jvm.cfg must be:"
    echo
    echo "  -client KNOWN"
    echo
    exit 1
fi

java_link="$graal_home/c1x4hotspotsrc/hotspot/java"
if [ ! -e $java_link ]; then
    echo "Creating link: $java_link -> $JDK7/jre/bin/java"
    ln -s $JDK7/jre/bin/java $java_link
fi

pushd $graal_home/make

ARCH_DATA_MODEL=64 LANG=C HOTSPOT_BUILD_JOBS=4 ALT_BOOTDIR=$JDK7G INSTALL=$JDK7G/jre make jvmg1
ARCH_DATA_MODEL=64 LANG=C HOTSPOT_BUILD_JOBS=4 ALT_BOOTDIR=$JDK7 INSTALL=$JDK7/jre make product1

popd