On Wed, 8 Jun 2022 04:59:07 GMT, Yoshiki Sato <[email protected]> wrote:
> Please review this PR.
> SDK 10.15 and earlier reports os.version as 10.16 on Big Sur. This fix will
> check if dynamic linker support, which is supported from Big Sur, is
> available or not on the OS even if os.version is reported as 10.16 instead of
> 11. The os.version 10.16 doesn't include the update version like y of
> 10.x.y. Hence the change only see if it is 10.16 or not.
Looks good. Thanks for fixing this.
As a background, Big Sur reports 10.16 as backward compatibility when built
with macOS SDK 10.15 and earlier. Hence this needs to check for os version
10.16 that supports dynamic linker cache.
test/jdk/java/lang/RuntimeTests/loadLibrary/exeLibraryCache/LibraryFromCache.java
line 45:
> 43: public class LibraryFromCache {
> 44: public static void main(String[] args) throws IOException {
> 45: System.out.println("os.version = " +
> System.getProperty("os.version"));
The copyright end year needs to be updated.
-------------
Marked as reviewed by mchung (Reviewer).
PR: https://git.openjdk.org/jdk/pull/9077