0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-08-17 03:42:54 +00:00
Files
termux-packages/packages/openjdk-21/0018-Warn-instead-of-exiting-if-getcpu-2-is-unsupported.patch
alexytomi f1a75afe78 fix(openjdk-21): Readd deleted comments to commit message
Also regenerates for 21.0.8-ga
2025-07-23 00:33:24 -05:00

27 lines
859 B
Diff

From 5bc0755e213d7c1c98633d5d110152a0f611258d 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/40] 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 27c38826255..445a11b8465 100644
--- a/src/hotspot/os/linux/os_linux.cpp
+++ b/src/hotspot/os/linux/os_linux.cpp
@@ -3132,7 +3132,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