Skip to contentSkip to conversation

OpenJDK-8u: For x86 and arm

PATCH In review Vinay K. Awasthi 2 participants 3 messages Aug 14, 2015 – Aug 18, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 OpenJDK-8u: For x86 and arm

From: "Vinay K. Awasthi" <[email protected]>

OpenJDK-8 Update Build 40b27:

This package enables OpenJDK-8 update for x86 and arm in following vm configurations.

x86: hotspot VM
arm: interpreter mode (zero vm)

Openjdk-8u also supports compact profiles (see http://openjdk.java.net/jeps/161 for more details). These compact profiles can also be built by going over the comments.

oe_runmake profiles will build compact profile one two and three java runtimes (jre) oe_runmake images profiles will build compact profile JDKs

---
 .../openjdk-8u-40b27/cacao-arm-ucontext.patch      |  24 +
 .../openjdk-8u-40b27/cacao-libtoolize.patch        |  12 +
 .../openjdk-8u-40b27/cacao-loadavg-makefile.patch  |  13 +
 .../openjdk/openjdk-8u-40b27/cacao-loadavg.patch   |  27 +
 .../openjdk-8u-40b27/faulty-nx-emulation.patch     |  12 +
 .../openjdk/openjdk-8u-40b27/fix-checksums.patch   |  61 ++
 recipes-core/openjdk/openjdk-8u-40b27/jvm.cfg      |  43 ++
 .../openjdk/openjdk-8u-40b27/zero-build.patch      |  14 +
 recipes-core/openjdk/openjdk-8u_40b27-2.5.4.bb     | 620 +++++++++++++++++++++
 recipes-images/images/java-test-image.bb           |   1 +
 10 files changed, 827 insertions(+)
 create mode 100644 recipes-core/openjdk/openjdk-8u-40b27/cacao-arm-ucontext.patch
 create mode 100644 recipes-core/openjdk/openjdk-8u-40b27/cacao-libtoolize.patch
 create mode 100644 recipes-core/openjdk/openjdk-8u-40b27/cacao-loadavg-makefile.patch
 create mode 100644 recipes-core/openjdk/openjdk-8u-40b27/cacao-loadavg.patch
 create mode 100644 recipes-core/openjdk/openjdk-8u-40b27/faulty-nx-emulation.patch
 create mode 100644 recipes-core/openjdk/openjdk-8u-40b27/fix-checksums.patch
 create mode 100644 recipes-core/openjdk/openjdk-8u-40b27/jvm.cfg
 create mode 100644 recipes-core/openjdk/openjdk-8u-40b27/zero-build.patch
 create mode 100644 recipes-core/openjdk/openjdk-8u_40b27-2.5.4.bb
recipes-core/openjdk/openjdk-8u-40b27/cacao-arm-ucontext.patch new file +24 -0
new file mode 100644
index 0000000..c21fcf1
@@ -0,0 +1,24 @@
+Index: cacao-a567bcb7f589/src/vm/jit/arm/linux/md-os.c
+===================================================================
+--- cacao-a567bcb7f589/src/vm/jit/arm/linux/md-os.c	2013-01-26 21:30:54.206581090 +0100
++++ cacao-a567bcb7f589/src/vm/jit/arm/linux/md-os.c	2013-01-26 21:31:34.406991316 +0100
+@@ -28,19 +28,7 @@
+ 
+ #include <stdint.h>
+ 
+-#define ucontext broken_glibc_ucontext
+-#define ucontext_t broken_glibc_ucontext_t
+ #include <ucontext.h>
+-#undef ucontext
+-#undef ucontext_t
+-
+-typedef struct ucontext {
+-   unsigned long     uc_flags;
+-   struct ucontext  *uc_link;
+-   stack_t           uc_stack;
+-   struct sigcontext uc_mcontext;
+-   sigset_t          uc_sigmask;
+-} ucontext_t;
+ 
+ #define scontext_t struct sigcontext
+ 
recipes-core/openjdk/openjdk-8u-40b27/cacao-libtoolize.patch new file +12 -0
new file mode 100644
index 0000000..484cb10
@@ -0,0 +1,12 @@
+Index: icedtea6/Makefile.am
+===================================================================
+--- icedtea6.orig/Makefile.am	2011-12-21 22:58:23.000000000 +0100
++++ icedtea6/Makefile.am	2011-12-21 23:00:21.405887186 +0100
+@@ -1922,6 +1922,7 @@
+ if BUILD_CACAO
+ if !USE_SYSTEM_CACAO
+ 	cd cacao/cacao && \
++	rm -f libtool && \
+ 	./autogen.sh && \
+ 	$(ARCH_PREFIX) ./configure \
+ 	  --host=$(host_alias) \
recipes-core/openjdk/openjdk-8u-40b27/cacao-loadavg-makefile.patch new file +13 -0
new file mode 100644
index 0000000..a389206
@@ -0,0 +1,13 @@
+Index: icedtea-2.1.4/Makefile.am
+===================================================================
+--- icedtea-2.1.4.orig/Makefile.am	2013-01-26 18:20:55.152561203 +0100
++++ icedtea-2.1.4/Makefile.am	2013-01-26 18:41:07.637992206 +0100
+@@ -1994,6 +1994,8 @@
+ if BUILD_CACAO
+ if !USE_SYSTEM_CACAO
+ 	cd cacao/cacao && \
++	patch -p1 -N < $(abs_top_srcdir)/patches/cacao-loadavg.patch && \
++	patch -p1 -N < $(abs_top_srcdir)/patches/cacao-arm-ucontext.patch && \
+ 	rm -f libtool && \
+ 	./autogen.sh && \
+ 	$(ARCH_PREFIX) ./configure \
recipes-core/openjdk/openjdk-8u-40b27/cacao-loadavg.patch new file +27 -0
new file mode 100644
index 0000000..0fc1a81
@@ -0,0 +1,27 @@
+Index: cacao-cff92704c4e0/src/vm/os.hpp
+===================================================================
+--- cacao-cff92704c4e0/src/vm/os.hpp	2011-12-08 13:40:45.000000000 +0100
++++ cacao-cff92704c4e0/src/vm/os.hpp	2011-12-20 11:42:36.985633921 +0100
+@@ -425,7 +425,21 @@
+ #if defined(HAVE_GETLOADAVG)
+ 	return ::getloadavg(loadavg, nelem);
+ #else
+-# error getloadavg not available
++        FILE *LOADAVG;
++        double avg[3] = { 0.0, 0.0, 0.0 };
++        int i, res = -1;;
++
++        if ((LOADAVG = fopen("/proc/loadavg", "r"))) {
++                fscanf(LOADAVG, "%lf %lf %lf", &avg[0], &avg[1], &avg[2]);
++                res = 0;
++                fclose(LOADAVG);
++        }
++
++        for (i = 0; (i < nelem) && (i < 3); i++) {
++                loadavg[i] = avg[i];
++        }
++
++        return res;
+ #endif
+ }
+ 
recipes-core/openjdk/openjdk-8u-40b27/faulty-nx-emulation.patch new file +12 -0
new file mode 100644
index 0000000..4d65917
@@ -0,0 +1,12 @@
+--- hotspot/src/os/linux/vm/os_linux.cpp	2015-03-07 10:25:19.000000000 -0800
++++ hotspot/src/os/linux/vm/os_linux.cpp	2015-03-07 10:25:19.000000000 -0800
++++ a.cpp	2015-07-23 11:45:17.666243540 -0700
+@@ -4847,7 +4847,7 @@
+   Linux::capture_initial_stack(JavaThread::stack_size_at_create());
+ 
+ #if defined(IA32)
+-  workaround_expand_exec_shield_cs_limit();
++//  workaround_expand_exec_shield_cs_limit();
+ #endif
+ 
+   Linux::libpthread_init();
recipes-core/openjdk/openjdk-8u-40b27/fix-checksums.patch new file +61 -0

61 lines not on this page · raw message

recipes-core/openjdk/openjdk-8u-40b27/jvm.cfg new file +43 -0

43 lines not on this page · raw message

recipes-core/openjdk/openjdk-8u-40b27/zero-build.patch new file +14 -0
new file mode 100644
index 0000000..1c07102
@@ -0,0 +1,14 @@
+---  hotspot/src/share/vm/interpreter/interpreterRuntime.cpp	2015-03-07 10:25:19.000000000 -0800
++++  hotspot/src/share/vm/interpreter/interpreterRuntime.cpp	2015-03-07 10:25:19.000000000 -0800
+@@ -407,7 +407,11 @@
+     // during deoptimization so the interpreter needs to skip it when
+     // the frame is popped.
+     thread->set_do_not_unlock_if_synchronized(true);
++#ifdef CC_INTERP
++    return (address) -1;
++#else
+     return Interpreter::remove_activation_entry();
++#endif
+   }
+ 
+   // Need to do this check first since when _do_not_unlock_if_synchronized
recipes-core/openjdk/openjdk-8u_40b27-2.5.4.bb new file +620 -0

620 lines not on this page · raw message

recipes-images/images/java-test-image.bb +1 -0
index 22c7bdf..3c241e6 100644
@@ -9,6 +9,7 @@ IMAGE_INSTALL = "busybox modutils-initscripts initscripts opkg udev sysvinit net
                  ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${CORE_IMAGE_EXTRA_INSTALL} \
                  openjdk-7-jre openjdk-7-vm-zero openjdk-7-vm-jamvm openjdk-7-vm-cacao \
                  openjdk-6-jre openjdk-6-vm-zero openjdk-6-vm-jamvm openjdk-6-vm-cacao \
+                 openjdk-8-jre \
                  strace dropbear binutils \
                  classpath \
                  classpath-common \
Signature · 1 line
1.9.1
#1 lore raw

Hi,

Quoted 9 lines · Vinay K. Awasthi

From: "Vinay K. Awasthi" <[email protected]>

OpenJDK-8 Update Build 40b27:

This package enables OpenJDK-8 update for x86 and arm in following vm configurations.

x86: hotspot VM
arm: interpreter mode (zero vm)

Quoted 8 lines

Openjdk-8u also supports compact profiles (see http://openjdk.java.net/jeps/161 for more details). These compact profiles can also be built by going over the comments.

oe_runmake profiles will build compact profile one two and three java runtimes (jre) oe_runmake images profiles will build compact profile JDKs

---

# bitbake java-test-image

NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'openjdk-8-jre' (but /media/data/fb/majo/test/poky/meta-java/recipes-images/images/java-test-image.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'openjdk-8-jre' is unbuildable, removing... Missing or unbuildable dependency chain was: ['openjdk-8-jre']
ERROR: Required build target 'java-test-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['java-test-image', 'openjdk-8-jre']

Please fix this build error.

Best Regards,
Maxin

#2 lore raw

Openjdk-8-jre is changed to openjdk-8u-jre (Openjdk-8 update) I will incorporate other comments and send out an updated patch.

Thanks,
Vinay

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Maxin B. John
Sent: Tuesday, August 18, 2015 6:12 AM
To: [email protected]
Subject: Re: [oe] [meta-java][PATCH 1/2] OpenJDK-8u: For x86 and arm

Hi,

Quoted 12 lines · Vinay K. Awasthi

From: "Vinay K. Awasthi" <[email protected]>

OpenJDK-8 Update Build 40b27:

This package enables OpenJDK-8 update for x86 and arm in following vm configurations.

x86: hotspot VM
arm: interpreter mode (zero vm)

Openjdk-8u also supports compact profiles (see
http://openjdk.java.net/jeps/161 for more details). These compact profiles can also be built by going over the comments.

Quoted 6 lines

oe_runmake profiles will build compact profile one two and three java runtimes (jre) oe_runmake images profiles will build compact profile JDKs

---

# bitbake java-test-image

NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'openjdk-8-jre' (but /media/data/fb/majo/test/poky/meta-java/recipes-images/images/java-test-image.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'openjdk-8-jre' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['openjdk-8-jre']
ERROR: Required build target 'java-test-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['java-test-image', 'openjdk-8-jre']

Please fix this build error.

Best Regards,
Maxin

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel