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