JDK-8251854 : [macosx] Java forces the use of discrete GPU
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 11,14,15,16
  • Priority: P3
  • Status: In Progress
  • Resolution: Unresolved
  • OS: os_x
  • CPU: generic
  • Submitted: 2020-08-15
  • Updated: 2021-07-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Related Reports
CSR :  
Relates :  
Relates :  
The same bug was fixed long time ago by the JDK-8041900
But it did not cover some common cases:
"The fix doesn't work for applets, javapanel, javaws, and also with 
applications which are running via command line (./bin/java -jar xxx). 
Not sure that it can be fixed."

The current bug is created to investigate the possibilities to fix the remaining issues. One of the reasons to check it is that the tests execution just destabilizes the systems with dual video cards.
reported against Apple: FB8940330

@prrace has indicated that a compatibility and specification (CSR) request is needed for this pull request. @mrserb please create a CSR request and add link to it in JDK-8251854. This pull request cannot be integrated until the CSR request is approved.