JDK-8366564 : Release Note: -XX:+UseTransparentHugePages fails to turn on huge pages for G1
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 25
  • Priority: P4
  • Status: New
  • Resolution: Unresolved
  • Submitted: 2025-09-01
  • Updated: 2025-09-02
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 25
25Unresolved
Description
On systems configured with the Transparent Huge Pages (THP) mode as ´madvise´ the option `-XX:+UseTransparentHugePages` does not enable huge pages when running with the default garbage collector G1. 

A workaround to allow the use of transparent huge pages with G1 is to configure the THP mode as `always`:
```
# echo always > /sys/kernel/mm/transparent_hugepage/enabled
```

This issue will be fixed in a future update. 
Comments
Reviewed by: stefank
02-09-2025