United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-8007018 RFE: -XX:+UseLargePages does not work with CDS
JDK-8007018 : RFE: -XX:+UseLargePages does not work with CDS

Details
Type:
Enhancement
Submit Date:
2013-01-28
Status:
Resolved
Updated Date:
2013-05-21
Project Name:
JDK
Resolved Date:
2013-05-08
Component:
hotspot
OS:
generic
Sub-Component:
runtime
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
Fixed Versions:
hs25 (b33)

Related Reports
Backport:

Sub Tasks

Description
UseLargePages does not work with CDS:

 % $JAVA_HOME/bin/java -XX:+UseLargePages -Xshare:on -version
Java HotSpot(TM) 64-Bit Server VM warning: disabling large pages and compressed oops because of -Xshare:on
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b65)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b18-internal-fastdebug, mixed mode, sharing)

This is bad because users will want to use CDS with Large Pages.
                                    

Comments
This should just work.  So the fix is to remove the code in arguments.cpp that explicitly disallows UseLargePages with CDS.
                                     
2013-05-03
URL:   http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/64340da5b68c
User:  hseigel
Date:  2013-05-08 14:11:00 +0000

                                     
2013-05-08
URL:   http://hg.openjdk.java.net/hsx/hsx25/hotspot/rev/64340da5b68c
User:  amurillo
Date:  2013-05-17 19:22:56 +0000

                                     
2013-05-17



Hardware and Software, Engineered to Work Together