Path: blob/buildjre8/patches/jdk8u_android_aarch32.diff
861 views
diff --git a/hotspot/src/os/linux/vm/os_linux.cpp b/hotspot/src/os/linux/vm/os_linux.cpp1index d3a9f240..410693bf 1006442--- a/hotspot/src/os/linux/vm/os_linux.cpp3+++ b/hotspot/src/os/linux/vm/os_linux.cpp4@@ -95,13 +95,17 @@5# include <semaphore.h>6# include <fcntl.h>7# include <string.h>8-# include <syscall.h>9# include <sys/sysinfo.h>10-#ifndef __UCLIBC__11+#if !defined(__UCLIBC__) && !defined(__ANDROID__)12# include <gnu/libc-version.h>13#endif14# include <sys/ipc.h>15+#if !defined(__ANDROID__)16# include <sys/shm.h>17+# include <syscall.h>18+#else19+# include <sys/syscall.h>20+#endif21# include <link.h>22# include <stdint.h>23# include <inttypes.h>24@@ -3046,7 +3050,7 @@ extern "C" JNIEXPORT int fork1() { return fork(); }25// Handle request to load libnuma symbol version 1.1 (API v1). If it fails26// load symbol from base version instead.27void* os::Linux::libnuma_dlsym(void* handle, const char *name) {28-#ifndef __UCLIBC__29+#if !defined(__UCLIBC__) && !defined(__ANDROID__)30void *f = dlvsym(handle, name, "libnuma_1.1");31if (f == NULL) {32f = dlsym(handle, name);33@@ -5976,7 +5980,7 @@ bool os::is_thread_cpu_time_supported() {34// Linux doesn't yet have a (official) notion of processor sets,35// so just return the system wide load average.36int os::loadavg(double loadavg[], int nelem) {37-#ifndef __UCLIBC__38+#if !defined(__UCLIBC__) && !defined(__ANDROID__)39return ::getloadavg(loadavg, nelem);40#else41return -1;42diff --git a/hotspot/src/os_cpu/linux_aarch32/vm/os_linux_aarch32.cpp b/hotspot/src/os_cpu/linux_aarch32/vm/os_linux_aarch32.cpp43index 2883fc17..0292a17f 10064444--- a/hotspot/src/os_cpu/linux_aarch32/vm/os_linux_aarch32.cpp45+++ b/hotspot/src/os_cpu/linux_aarch32/vm/os_linux_aarch32.cpp46@@ -75,7 +75,9 @@47# include <pwd.h>48# include <poll.h>49# include <ucontext.h>50+#ifndef __ANDROID__51# include <fpu_control.h>52+#endif5354#define REG_FP 2955#define SPELL_REG_SP "sp"565758