hotspot/src/share/vm/prims/jvm.cpp
changeset 38118 16e2f219e1b6
parent 37479 14a195eaf2c5
child 38151 fffedc5e5cf8
equal deleted inserted replaced
38111:02d1ce4fb721 38118:16e2f219e1b6
   387   {
   387   {
   388     if (FLAG_IS_DEFAULT(MaxDirectMemorySize)) {
   388     if (FLAG_IS_DEFAULT(MaxDirectMemorySize)) {
   389       PUTPROP(props, "sun.nio.MaxDirectMemorySize", "-1");
   389       PUTPROP(props, "sun.nio.MaxDirectMemorySize", "-1");
   390     } else {
   390     } else {
   391       char as_chars[256];
   391       char as_chars[256];
   392       jio_snprintf(as_chars, sizeof(as_chars), SIZE_FORMAT, MaxDirectMemorySize);
   392       jio_snprintf(as_chars, sizeof(as_chars), JULONG_FORMAT, MaxDirectMemorySize);
   393       PUTPROP(props, "sun.nio.MaxDirectMemorySize", as_chars);
   393       PUTPROP(props, "sun.nio.MaxDirectMemorySize", as_chars);
   394     }
   394     }
   395   }
   395   }
   396 
   396 
   397   // JVM monitoring and management support
   397   // JVM monitoring and management support