diff options
author | Jens Rehsack <rehsack@gmail.com> | 2015-12-08 14:52:51 +0100 |
---|---|---|
committer | Maxin B. John <maxin.john@intel.com> | 2015-12-08 17:43:40 +0200 |
commit | bac3b9acee5110390d15d38dacdb1622e31b2238 (patch) | |
tree | 1f39d7b8392576f19f77fb65f470391e2d15c6c1 /recipes-core/openjdk/patches-openjdk-8/openjdk8-use_builtin_frame_address_0_rather_than_returning_address_of_local_variable.patch | |
parent | 04d5d0bf414c05ca59618d77f17ff9898aa1c566 (diff) | |
download | meta-java-bac3b9acee5110390d15d38dacdb1622e31b2238.tar.gz |
openjdk-8: add recipes for openjdk-8 and openjre-8
This adds openjdk-8 for native and target builds and allows a stripped
openjre-8 being built as well instead of trying to cherry-pick jre
components from jdk-image.
The recipes allow building openjdk-8 with or without:
* x11
* cups
* alsa/pulseaudio
and let packager enable unlimited-crypto, if desired.
To support certificate based java libraries, cacerts is created based on
ca-certificates from OE-core.
Since there can be only one PROVIDES for virtual/java-native and virtual/javac-native,
move the provides to openjdk-8-native (I think everyone agrees it's a better
choice than ecj-bootstrap-native).
Plus: Applying a fix from openjdk-9 repository which fixes build issues using gcc5
Signed-off-by: Jens Rehsack <sno@netbsd.org>
Signed-off-by: Maxin B. John <maxin.john@intel.com>
Diffstat (limited to 'recipes-core/openjdk/patches-openjdk-8/openjdk8-use_builtin_frame_address_0_rather_than_returning_address_of_local_variable.patch')
-rw-r--r-- | recipes-core/openjdk/patches-openjdk-8/openjdk8-use_builtin_frame_address_0_rather_than_returning_address_of_local_variable.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/recipes-core/openjdk/patches-openjdk-8/openjdk8-use_builtin_frame_address_0_rather_than_returning_address_of_local_variable.patch b/recipes-core/openjdk/patches-openjdk-8/openjdk8-use_builtin_frame_address_0_rather_than_returning_address_of_local_variable.patch new file mode 100644 index 0000000..f3dc864 --- /dev/null +++ b/recipes-core/openjdk/patches-openjdk-8/openjdk8-use_builtin_frame_address_0_rather_than_returning_address_of_local_variable.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | # HG changeset patch | ||
2 | # User sgehwolf | ||
3 | # Date 1434121785 -3600 | ||
4 | # Node ID 6217fd2c767b467641bf7b41a9c37273e8fa0cbd | ||
5 | # Parent ff0929a59ced0e144201aa05819ae2e47d6f2c61 | ||
6 | 8087120: [GCC5] java.lang.StackOverflowError on Zero JVM initialization on non x86 platforms. | ||
7 | Summary: Use __builtin_frame_address(0) rather than returning address of local variable. | ||
8 | Reviewed-by: dholmes | ||
9 | |||
10 | diff -r ff0929a59ced -r 6217fd2c767b src/os_cpu/linux_zero/vm/os_linux_zero.cpp | ||
11 | --- hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp.orig Thu Jun 11 20:19:26 2015 -0700 | ||
12 | +++ hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp Fri Jun 12 16:09:45 2015 +0100 | ||
13 | @@ -59,8 +59,8 @@ | ||
14 | extern sigjmp_buf* get_jmp_buf_for_continuation(); | ||
15 | |||
16 | address os::current_stack_pointer() { | ||
17 | - address dummy = (address) &dummy; | ||
18 | - return dummy; | ||
19 | + // return the address of the current function | ||
20 | + return (address)__builtin_frame_address(0); | ||
21 | } | ||
22 | |||
23 | frame os::get_sender_for_C_frame(frame* fr) { | ||