openjdk-17: try disable tagging
This commit is contained in:
parent
ddf9dc680d
commit
0d5011e34a
26
packages/openjdk-17/android11.patch
Normal file
26
packages/openjdk-17/android11.patch
Normal file
@ -0,0 +1,26 @@
|
||||
diff -uNr mobile-ec285598849a27f681ea6269342cf03cf382eb56/src/java.base/share/native/libjli/java.c mobile-ec285598849a27f681ea6269342cf03cf382eb56.mod/src/java.base/share/native/libjli/java.c
|
||||
--- mobile-ec285598849a27f681ea6269342cf03cf382eb56/src/java.base/share/native/libjli/java.c 2021-07-06 14:29:24.000000000 +0300
|
||||
+++ mobile-ec285598849a27f681ea6269342cf03cf382eb56.mod/src/java.base/share/native/libjli/java.c 2021-07-30 12:32:44.290950873 +0300
|
||||
@@ -219,6 +219,10 @@
|
||||
#define STACK_SIZE_MINIMUM (64 * KB)
|
||||
#endif
|
||||
|
||||
+#ifdef __TERMUX__
|
||||
+extern bool android_mallopt(int opcode, void* arg, size_t arg_size);
|
||||
+#endif
|
||||
+
|
||||
/*
|
||||
* Entry point.
|
||||
*/
|
||||
@@ -252,6 +256,11 @@
|
||||
_is_java_args = javaargs;
|
||||
_wc_enabled = cpwildcard;
|
||||
|
||||
+#ifdef __TERMUX__
|
||||
+ int android_malloc_tag_level = 0;
|
||||
+ android_mallopt(8, &android_malloc_tag_level, sizeof(android_malloc_tag_level)));
|
||||
+#endif
|
||||
+
|
||||
InitLauncher(javaw);
|
||||
DumpState();
|
||||
if (JLI_IsTraceLauncher()) {
|
@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Java development kit and runtime"
|
||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=17.0
|
||||
TERMUX_PKG_REVISION=2
|
||||
TERMUX_PKG_REVISION=3
|
||||
TERMUX_PKG_SRCURL=https://github.com/termux/openjdk-mobile-termux/archive/ec285598849a27f681ea6269342cf03cf382eb56.tar.gz
|
||||
TERMUX_PKG_SHA256=d7c6ead9d80d0f60d98d0414e9dc87f5e18a304e420f5cd21f1aa3210c1a1528
|
||||
TERMUX_PKG_DEPENDS="cups, fontconfig, freetype, libandroid-shmem, libandroid-spawn, libiconv, libpng, libx11, libxrender, zlib"
|
||||
|
Loading…
Reference in New Issue
Block a user