JDK-8220805 : Remove macOSX pthread bug workaround
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 13
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: os_x
  • Submitted: 2019-03-19
  • Updated: 2023-11-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Description
JDK-8218975 introduced a workaround for a bug in macOSX pthread support.  At the time, it looked like that bug was fixed in OSX 10.14 (Mojave), which was the latest release at the time.  (But we were still using and supporting earlier versions.)

The task here is to determine when the workaround is no longer needed (e.g. we no longer support sufficiently old versions), and remove the workaround when that's possible.

Comments
Thank you, I tried it on the latest macOS and seems fine, as expected. I pushed this feature out to jdk22, since it is not a bug and we are running out of the time for jdk21.
16-05-2023

Note that there is a standalone reproducer attached to JDK-8218975. Run that against the earliest MacOS version we still support.
15-05-2023

IMO this workaround can probably be removed now. The affected macOS releases are no longer supported by Apple, support for High Sierra ended at the end of 2020. It's been roughly 2 years since then.
20-03-2023

I agree this has to be fixed. This bug was opened so that we would one day remove the workaround. I just don't know whether we've waited long enough yet. The macOS affecionados are in a better position to comment on uptake of macOS updates.
25-06-2021

This issue should be fixed, not closed as won't fix. It's platform-conditionalized code plopped into the middle of generic POSIX code, so harder to read and maintain. It has some performance cost. I think Apple no longer supports High Sierra.
24-06-2021

Runtime Triage: This is not on our current list of priorities. We will consider this feature if we receive additional customer requirements.
24-06-2021

At least Apple have a fairly aggressive update strategy, so we can expect most people to move up quickly. This has been fixed (or fails to reproduce) in 10.14, which was released in September 2018. And it appears they ceased providing updates for 10.13 in July 2018. So we can't expect any backports. We need to wait 2-3 years until we expect anyone who we need to care about to be on 10.14+
11-08-2019