< prev index next >

src/hotspot/share/runtime/arguments.cpp

Print this page
rev 56323 : imported patch 8220310.mut.0
rev 56324 : imported patch 8220310.mut.1_thomas


4096   if (FLAG_IS_DEFAULT(ThreadLocalHandshakes) || !SafepointMechanism::supports_thread_local_poll()) {
4097     log_debug(ergo)("ThreadLocalHandshakes %s", ThreadLocalHandshakes ? "enabled." : "disabled.");
4098   } else {
4099     log_info(ergo)("ThreadLocalHandshakes %s", ThreadLocalHandshakes ? "enabled." : "disabled.");
4100   }
4101 
4102   return JNI_OK;
4103 }
4104 
4105 jint Arguments::adjust_after_os() {
4106   if (UseNUMA) {
4107     if (!FLAG_IS_DEFAULT(AllocateHeapAt)) {
4108       FLAG_SET_ERGO(UseNUMA, false);
4109     } else if (UseParallelGC || UseParallelOldGC) {
4110       if (FLAG_IS_DEFAULT(MinHeapDeltaBytes)) {
4111          FLAG_SET_DEFAULT(MinHeapDeltaBytes, 64*M);
4112       }
4113     }
4114     // UseNUMAInterleaving is set to ON for all collectors and
4115     // platforms when UseNUMA is set to ON. NUMA-aware collectors
4116     // such as the parallel collector for Linux and Solaris will
4117     // interleave old gen and survivor spaces on top of NUMA
4118     // allocation policy for the eden space.
4119     // Non NUMA-aware collectors such as CMS, G1 and Serial-GC on
4120     // all platforms and ParallelGC on Windows will interleave all
4121     // of the heap spaces across NUMA nodes.
4122     if (FLAG_IS_DEFAULT(UseNUMAInterleaving)) {
4123       FLAG_SET_ERGO(UseNUMAInterleaving, true);
4124     }
4125   }
4126   return JNI_OK;
4127 }
4128 
4129 int Arguments::PropertyList_count(SystemProperty* pl) {
4130   int count = 0;
4131   while(pl != NULL) {
4132     count++;
4133     pl = pl->next();
4134   }
4135   return count;
4136 }
4137 
4138 // Return the number of readable properties.
4139 int Arguments::PropertyList_readable_count(SystemProperty* pl) {




4096   if (FLAG_IS_DEFAULT(ThreadLocalHandshakes) || !SafepointMechanism::supports_thread_local_poll()) {
4097     log_debug(ergo)("ThreadLocalHandshakes %s", ThreadLocalHandshakes ? "enabled." : "disabled.");
4098   } else {
4099     log_info(ergo)("ThreadLocalHandshakes %s", ThreadLocalHandshakes ? "enabled." : "disabled.");
4100   }
4101 
4102   return JNI_OK;
4103 }
4104 
4105 jint Arguments::adjust_after_os() {
4106   if (UseNUMA) {
4107     if (!FLAG_IS_DEFAULT(AllocateHeapAt)) {
4108       FLAG_SET_ERGO(UseNUMA, false);
4109     } else if (UseParallelGC || UseParallelOldGC) {
4110       if (FLAG_IS_DEFAULT(MinHeapDeltaBytes)) {
4111          FLAG_SET_DEFAULT(MinHeapDeltaBytes, 64*M);
4112       }
4113     }
4114     // UseNUMAInterleaving is set to ON for all collectors and
4115     // platforms when UseNUMA is set to ON. NUMA-aware collectors
4116     // such as Parallel GC for Linux and Solaris or G1 GC for Linux will
4117     // interleave old gen and survivor spaces on top of NUMA
4118     // allocation policy for the eden space.
4119     // Non NUMA-aware collectors such as CMS and Serial-GC on
4120     // all platforms and ParallelGC on Windows will interleave all
4121     // of the heap spaces across NUMA nodes.
4122     if (FLAG_IS_DEFAULT(UseNUMAInterleaving)) {
4123       FLAG_SET_ERGO(UseNUMAInterleaving, true);
4124     }
4125   }
4126   return JNI_OK;
4127 }
4128 
4129 int Arguments::PropertyList_count(SystemProperty* pl) {
4130   int count = 0;
4131   while(pl != NULL) {
4132     count++;
4133     pl = pl->next();
4134   }
4135   return count;
4136 }
4137 
4138 // Return the number of readable properties.
4139 int Arguments::PropertyList_readable_count(SystemProperty* pl) {


< prev index next >