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.
This should just work. So the fix is to remove the code in arguments.cpp that explicitly disallows UseLargePages with CDS.