From e9bc05c707eb94cb08f352d832b6624419209f22 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Mon, 18 May 2026 13:16:32 +0000 Subject: [PATCH] 8384088: osThread _thread_id should be an int on all BSD's Reviewed-by: phubner, dholmes --- src/hotspot/os/bsd/osThread_bsd.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/hotspot/os/bsd/osThread_bsd.cpp b/src/hotspot/os/bsd/osThread_bsd.cpp index db476e529ac..5ef0423af13 100644 --- a/src/hotspot/os/bsd/osThread_bsd.cpp +++ b/src/hotspot/os/bsd/osThread_bsd.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2025, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 2026, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -29,13 +29,7 @@ #include OSThread::OSThread() - : _thread_id( -#ifdef __APPLE__ - 0 -#else - nullptr -#endif - ), + : _thread_id(0), _pthread_id(nullptr), _unique_thread_id(0), _caller_sigmask(),