0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-08-09 02:01:57 +00:00
Files
termux-packages/packages/openjdk-17/0018-Warn-instead-of-exiting-if-getcpu-2-is-unsupported.patch
alexytomi 8d30dd9550 fix(openjdk-17): Readd deleted comments to commit message
Also regenerates for 17.0.16-ga
2025-07-23 00:33:24 -05:00

27 lines
859 B
Diff

From ad201e092384d9dea00bdc8d7e0e0338c0da15ff Mon Sep 17 00:00:00 2001
From: Duy Tran Khanh <40482367+khanhduytran0@users.noreply.github.com>
Date: Mon, 28 Jun 2021 17:47:31 +0700
Subject: [PATCH 18/41] Warn instead of exiting if getcpu(2) is unsupported
---
src/hotspot/os/linux/os_linux.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/hotspot/os/linux/os_linux.cpp b/src/hotspot/os/linux/os_linux.cpp
index 9c632112a2e..1112c8dc3b0 100644
--- a/src/hotspot/os/linux/os_linux.cpp
+++ b/src/hotspot/os/linux/os_linux.cpp
@@ -3088,7 +3088,8 @@ void os::Linux::sched_getcpu_init() {
}
if (sched_getcpu() == -1) {
- vm_exit_during_initialization("getcpu(2) system call not supported by kernel");
+ // vm_exit_during_initialization
+ warning("getcpu(2) system call not supported by kernel");
}
}
--
2.50.1