6992192: Need option to configure if direct memory is page aligned (XS)
David Holmes
David.Holmes at oracle.com
Fri Oct 15 04:44:57 PDT 2010
Alan Bateman said the following on 10/15/10 18:02:
> David Holmes wrote:
>> :
>> What am I missing here. We set a VM option that sets a property. Why
>> doesn't the end user just set the property directly ???
> It has to be the command-line as explicitly called System.setProperty
> may be too late. The reason for making it a VM option is that its a
> comrade to the existing MaxDirectMemorySize option, and it might be
> strange/inconsistent to configure the same resource partly with a VM
> option and partly with a system property.
Sorry but I don't understand why either of them are VM options when it
would appear you could just do:
java -Dsun.nio.MaxDirectMemorySize=16M -Dsun.nio.PageAlignDirectMemory=true
David
More information about the hotspot-runtime-dev
mailing list