On Thu, 11 Nov 2021 15:32:01 GMT, Jayathirth D V <j...@openjdk.org> wrote:

>> When JDK is built on BigSur with Xcode12.5 and used to run jtreg tests in 
>> macOS10.15 with Xcode <=12.4 we are getting compilation error. We dont set 
>> any deployment target when when we use xcrun to create .air file and this 
>> issue looks similar to https://developer.apple.com/forums/thread/105719. 
>> Also https://developer.apple.com/forums/thread/105719 states that even if 
>> they set app deployment target they need to explicitly set deployment in 
>> "xcrun metal".
>> 
>> Made same change to use -mmacosx-version-min=10.12.00 in our make file. 
>> Whether we should keep 10.12.00 or 10.13/14 is open to discussion for metal 
>> pipeline.
>> 
>> SwingSet2, J2DDemo & JCK/jtreg runs in CI are green. Also Vitaly(Submitter) 
>> has confirmed that patch resolves the issue.
>
> Jayathirth D V has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Use Macro for version

My understanding is that the flag here affects ONLY the metal compiler - for 
compiling metal shaders.
And if you don't specify -Dsun.java2d.metal=true (since metal is off by 
default) its a 100% no-op for the rest of the JDK.
And already, if you specify Dsun.java2d.metal=true and you are on 10.13 or 
lower, we do not honour the request so we haven't changed what platforms will 
work at all if we do it this way. So our effective deployment target for metal 
is already 10.14

And I also would not be surprised if someone wants to backport this to 17u, in 
which case a config change would have the effect of making 17u no longer run on 
macos 12 .. which I guess will happen sometime during the life of the LTS but 
right now ??

So making it a metal-specific change is what I think we should do FOR NOW and 
we can have a follow-on fix that aligns both of these .. maybe that is a 
subsequent JDK 18 fix, or perhaps it should be an early JDK 19 fix ?

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

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

Reply via email to