RFR: 8258754: Gracefully fallback to the OpenGL rendering pipeline if Metal rendering pipeline initialization fails [v8]

Philip Race philip.race at oracle.com
Mon Jan 18 20:36:23 UTC 2021

We have a situation where this is the pattern which has been adopted on 
all other platforms
and it is a very old pattern and lots of tools and people are used to it.
We even have -Dsun.java2d.opengl=... on Windows and Linux so I think it 
best to keep this pattern here.
At least here we are thinking about the precedence. There's a bug open 
to do the same on Windows and Linux.


On 1/15/21 4:05 PM, Alan Snyder wrote:
> I must admit I am surprised at how complex the solution is to a simple observation.
> Specifically:
> 1. What is the point of having multiple boolean command line parameters? Instead of separately enabling and disabling pipelines, why not have a single parameter that lists the desired pipelines in priority order. If none of the listed pipelines are available, then the JDK should be free to make its own choice of an available pipeline.
> 2. I presume this issue is currently a macOS-specific issue, but couldn't a similar issue arise in the future on other platforms? That would argue for using a parameter whose name includes the platform name, so that instructions for multiple platforms (e.g. in some testing script) can be simultaneously specified.
>    Alan
>> PR: https://git.openjdk.java.net/lanai/pull/147

More information about the lanai-dev mailing list