openjdk17: update to 17.0.5+7.
This commit is contained in:
parent
f73e1455c5
commit
8a63f0a603
|
@ -1,35 +0,0 @@
|
|||
From da6d1fc0e0aeb1fdb504aced4b0dba0290ec240f Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Stuefe <stuefe@openjdk.org>
|
||||
Date: Thu, 30 Jun 2022 06:19:25 +0000
|
||||
Subject: [PATCH] 8289477: Memory corruption with CPU_ALLOC, CPU_FREE on muslc
|
||||
|
||||
Reviewed-by: dholmes, clanger
|
||||
---
|
||||
src/hotspot/os/linux/os_linux.cpp | 7 ++++++-
|
||||
1 file changed, 6 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/hotspot/os/linux/os_linux.cpp b/src/hotspot/os/linux/os_linux.cpp
|
||||
index 726926218907..8ee10e201c69 100644
|
||||
--- a/src/hotspot/os/linux/os_linux.cpp
|
||||
+++ b/src/hotspot/os/linux/os_linux.cpp
|
||||
@@ -4591,7 +4591,8 @@ static int _cpu_count(const cpu_set_t* cpus) {
|
||||
// dynamic check - see 6515172 for details.
|
||||
// If anything goes wrong we fallback to returning the number of online
|
||||
// processors - which can be greater than the number available to the process.
|
||||
-int os::Linux::active_processor_count() {
|
||||
+static int get_active_processor_count() {
|
||||
+ // Note: keep this function, with its CPU_xx macros, *outside* the os namespace (see JDK-8289477).
|
||||
cpu_set_t cpus; // can represent at most 1024 (CPU_SETSIZE) processors
|
||||
cpu_set_t* cpus_p = &cpus;
|
||||
int cpus_size = sizeof(cpu_set_t);
|
||||
@@ -4663,6 +4664,10 @@ int os::Linux::active_processor_count() {
|
||||
return cpu_count;
|
||||
}
|
||||
|
||||
+int os::Linux::active_processor_count() {
|
||||
+ return get_active_processor_count();
|
||||
+}
|
||||
+
|
||||
// Determine the active processor count from one of
|
||||
// three different sources:
|
||||
//
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'openjdk17'
|
||||
pkgname=openjdk17
|
||||
version=17.0.4+8
|
||||
version=17.0.5+7
|
||||
revision=1
|
||||
_gtest_ver=1.8.1
|
||||
_java_ver="${version%%.*}"
|
||||
|
@ -45,7 +45,7 @@ license="GPL-2.0-only WITH Classpath-exception-2.0"
|
|||
homepage="http://openjdk.java.net/"
|
||||
distfiles="https://github.com/openjdk/jdk${_java_ver}u/archive/jdk-${version}.tar.gz
|
||||
https://github.com/google/googletest/archive/refs/tags/release-${_gtest_ver}.tar.gz"
|
||||
checksum="b10b80aa96ac43c75163c1888bb42b66e1eeaecb02412d30de5369df7337ac8f
|
||||
checksum="f268e91052adb773ed5ecac70b232e70e830c89dd2d570c8c872bfaf2772867e
|
||||
9bf1fe5182a604b4135edc1a425ae356c9ad15e9b23f9f12a02e80184c3a249c"
|
||||
provides="java-environment-${version}_1"
|
||||
patch_args="-Np1 --directory=$build_wrksrc"
|
||||
|
|
Loading…
Reference in New Issue