RFR: 8257620: Do not use objc_msgSend_stret to get macOS version

Phil Race prr at openjdk.java.net
Wed Dec 2 19:29:55 UTC 2020


On Wed, 2 Dec 2020 17:34:00 GMT, Anton Kozlov <akozlov at openjdk.org> wrote:

> Please review a small change that replaces use of objc_msgSend_stret in macOS platform code with pure ObjC code. It's also a prerequisite for macOS/AArch64 support, where objc_msgSend_stret is not available.

Surely these days you can just call [NSProcessInfo operatingSystemVersion] directly ?
If I read the doc below it is in the 10.10 SDK and later.
https://developer.apple.com/documentation/foundation/nsprocessinfo/1410906-operatingsystemversion?language=occ

-------------

PR: https://git.openjdk.java.net/jdk/pull/1569


More information about the core-libs-dev mailing list