JDK-8245002 : Windows GDI functions don't support NUMA interleaving
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 14,15
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows
  • Submitted: 2020-05-14
  • Updated: 2020-09-03
  • Resolved: 2020-05-20
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.
JDK 15
15 b24Fixed
Related Reports
Relates :  
Relates :  
Sub Tasks
JDK-8252732 :  
JDK-8252733 :  
Description
During investigation of JDK-8240654 it was found that some of the Windows GDI functions don't work with our numa interleaving implementation (-XX:+UseNUMAInterleaving). This causes severe repaint issues.

The underlying issue is that these functions don't accept memory spanning over multiple memory reservations.

The problem can easily be seen with the Java2D demos, where the drawn UI is grayed out instead of containing all relevant components.

This can be reproduced by running building J2DBench and running:
java -Xmx1g -Xms1g -XX:+UseNUMAInterleaving -Dsun.java2d.opengl=False -Dsun.java2d.d3d=False -jar dist/J2DBench.jar

The -Dsun.java2d.d3d property is used to ensure that that java2d doesn't enable the alternative, D3D implementation instead of GDI. -Dsun.java2d.opengl is turned off for the same reason. 

NOTE about NUMA interleaving:
- Make sure that you run the test on a machine with more than one NUMA node.
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/2499ae33ef07 User: stefank Date: 2020-05-20 10:26:17 +0000
20-05-2020