JDK-8245000 : Windows GDI functions don't support large pages
  • 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-11-05
  • 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-8252734 :  
Description
During investigation of JDK-8240654 it was found that some of the Windows GDI functions don't work with large pages (-XX:+UseLargePages). This causes severe repaint issues.

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:+UseLargePages -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 large pages on windows:
- It is important to give the user "Lock pages in memory" "User Rights" and login / logout.
- Verify with -Xlog:pagesize that the heap is allocated with large pages. For example:
[0.014s][info][pagesize] Heap:  min=1G max=1G base=0x00000007c0000000 page_size=2M size=1G
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/4370158185a9 User: stefank Date: 2020-05-20 10:26:17 +0000
20-05-2020