Details
-
Enhancement
-
Resolution: Fixed
-
P4
-
16
-
b03
-
os_x
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8271407 | 15.0.5 | Vladimir Kempik | P4 | Resolved | Fixed | b01 |
JDK-8271408 | 13.0.9 | Vladimir Kempik | P4 | Resolved | Fixed | b01 |
JDK-8277740 | 11.0.15-oracle | Fairoz Matte | P4 | Resolved | Fixed | b01 |
JDK-8271416 | 11.0.13 | Vladimir Kempik | P4 | Resolved | Fixed | b01 |
JDK-8298131 | openjdk8u372 | Dukebot | P4 | Resolved | Fixed | b01 |
JDK-8286574 | 8u351 | Fairoz Matte | P4 | Resolved | Fixed | b01 |
Description
As described by comment, [NSProcessInfo operatingSystemVersion] is available in macOS 10.9, but it not available in the SDK for that version. To overcome that, objc_msgSend_stret is used.
This code can be rewritten in pure ObjC with proper type checks.
It's also necessary for macOS/AArch64 port, where objc_msgSend_stret is not available and compiler produces a message below.
/Users/akozlov/zulu16/src/java.base/macosx/native/libjava/java_props_macosx.c:241:79: error: 'objc_msgSend_stret' is unavailable: not available in arm64
OSVerStruct (*procInfoFn)(id rec, SEL sel) = (OSVerStruct(*)(id, SEL))objc_msgSend_stret;
^
/Users/akozlov/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/usr/include/objc/message.h:123:1: note: 'objc_msgSend_stret' has been explicitly marked unavailable here
objc_msgSend_stret(void /* id self, SEL op, ... */ )
Attachments
Issue Links
- backported by
-
JDK-8271407 Do not use objc_msgSend_stret to get macOS version
- Resolved
-
JDK-8271408 Do not use objc_msgSend_stret to get macOS version
- Resolved
-
JDK-8271416 Do not use objc_msgSend_stret to get macOS version
- Resolved
-
JDK-8277740 Do not use objc_msgSend_stret to get macOS version
- Resolved
-
JDK-8286574 Do not use objc_msgSend_stret to get macOS version
- Resolved
-
JDK-8298131 Do not use objc_msgSend_stret to get macOS version
- Resolved
- relates to
-
JDK-8160676 Update java_props_macosx.c for Mac OS SDK 10.10
- Open
- links to
-
Commit openjdk/jdk8u-dev/2abc2062
-
Commit openjdk/jdk11u-dev/0e2d915d
-
Commit openjdk/jdk13u-dev/6dd4098b
-
Commit openjdk/jdk15u-dev/6d4ca218
-
Commit openjdk/jdk/d4c7db50
-
Review openjdk/jdk8u-dev/153
-
Review openjdk/jdk11u-dev/171
-
Review openjdk/jdk13u-dev/241
-
Review openjdk/jdk15u-dev/82
-
Review openjdk/jdk/1569