diff options
author | Sven Gothel <[email protected]> | 2013-08-06 19:32:29 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-08-06 19:32:29 +0200 |
commit | a94b0e3c62110f077ea391ccdc158b2c804a5bb8 (patch) | |
tree | 15150ca4a2f3f733c22a474f9cffb43a27a2dad1 | |
parent | fb85d3c8f49b7fa0fe6c44e6723585708ffdf808 (diff) |
OpenJDK 8 Profiles ..
Stripped binary size GNU/Linux x64:
30M export/linux-x86_64-normal-server-release/j2re-compact1-image
42M export/linux-x86_64-normal-server-release/j2re-compact2-image
48M export/linux-x86_64-normal-server-release/j2re-compact3-image
94M export/linux-x86_64-normal-server-release/j2re-image
-rw-r--r-- | doc/README.JEP161.txt | 7 | ||||
-rw-r--r-- | doc/README.Jigsaw.txt | 10 | ||||
-rw-r--r-- | scripts/export.jep161-openjdk8.sh | 46 | ||||
-rw-r--r-- | scripts/make.jep161-openjdk8.sh | 13 |
4 files changed, 75 insertions, 1 deletions
diff --git a/doc/README.JEP161.txt b/doc/README.JEP161.txt index acedddc..187e9a6 100644 --- a/doc/README.JEP161.txt +++ b/doc/README.JEP161.txt @@ -14,5 +14,10 @@ sh ./get_source.sh ./jdk8/README-builds.html http://hg.openjdk.java.net/jdk8/jdk8/raw-file/tip/README-builds.html -sh configure && make all +sh configure --enable-openjdk-only \ + --with-import-hotspot=/somewhere/jdk8/build/linux-x86_64-normal-server-release/hotspot \ + --disable-zip-debug-info --disable-debug-symbols \ + --with-debug-level=release \ +sh configure +make profiles images docs # make test TEST=jdk_jigsaw diff --git a/doc/README.Jigsaw.txt b/doc/README.Jigsaw.txt index ac11672..a5cc44d 100644 --- a/doc/README.Jigsaw.txt +++ b/doc/README.Jigsaw.txt @@ -12,3 +12,13 @@ sh configure && make all make test TEST=jdk_jigsaw -> ./jdk/make/modules/modules.config + + +++ + +jigsaw/build/linux-x86_64-normal-server-release/images> + for i in `find . -name classes -a -type f` ; do unzip -l $i | grep Canvas && echo $i ; done | less + +AWT: ./jre-module-image/lib/modules/jdk.desktop/8-ea/classes ./jdk-module-image/lib/modules/jdk.desktop/8-ea/classes + ++++ diff --git a/scripts/export.jep161-openjdk8.sh b/scripts/export.jep161-openjdk8.sh new file mode 100644 index 0000000..1cfab2d --- /dev/null +++ b/scripts/export.jep161-openjdk8.sh @@ -0,0 +1,46 @@ +#! /bin/sh + +image_dir=$1 +export_dir=$2 +strip_tool=$3 + +if [ -z "$image_dir" -o -z "$export_dir" ] ; then + echo "Usage: $0 <image_dir> <export_dir> [<strip_tool>]" + exit 0 +fi + +if [ -z "$strip_tool" ] ; then + strip_tool=`which strip` +fi + +logfile=`basename $0 .sh`.log + +this_dir=`pwd` + +export_single() { + comp=$1 + cp -a $image_dir/$comp $export_dir/ + cd $export_dir/$comp + for i in `find . -type f -a \( -name \*.so -o -name \*.dll -o -name \*.jnilib \)` ; do + $strip_tool $i + done + for i in bin/* ; do + $strip_tool $i + done + cd $this_dir + echo "DU image $image_dir/$comp" + du -hs $image_dir/$comp + echo "DU export $export_dir/$comp" + du -hs $export_dir/$comp +} + +export_it() { + mkdir -p $export_dir + export_single j2re-compact1-image + export_single j2re-compact2-image + export_single j2re-compact3-image + export_single j2re-image +} + +export_it 2>&1 | tee -a $logfile + diff --git a/scripts/make.jep161-openjdk8.sh b/scripts/make.jep161-openjdk8.sh new file mode 100644 index 0000000..85f5da0 --- /dev/null +++ b/scripts/make.jep161-openjdk8.sh @@ -0,0 +1,13 @@ +#! /bin/sh + +logfile=`basename $0 .sh`.log + +build_it() { + sh configure --enable-openjdk-only \ + --disable-zip-debug-info --disable-debug-symbols \ + --with-debug-level=release \ + && make profiles images docs +} + +build_it 2>&1 | tee -a $logfile + |