< prev index next >

src/hotspot/os/windows/os_windows.cpp

Print this page

4216     // atexit functions can be delayed until process exit time, which
4217     // can be problematic for embedded VM situations. Embedded VMs should
4218     // call DestroyJavaVM() to assure that VM resources are released.
4219 
4220     // note: perfMemory_exit_helper atexit function may be removed in
4221     // the future if the appropriate cleanup code can be added to the
4222     // VM_Exit VMOperation's doit method.
4223     if (atexit(perfMemory_exit_helper) != 0) {
4224       warning("os::init_2 atexit(perfMemory_exit_helper) failed");
4225     }
4226   }
4227 
4228 #ifndef _WIN64
4229   // Print something if NX is enabled (win32 on AMD64)
4230   NOT_PRODUCT(if (PrintMiscellaneous && Verbose) nx_check_protection());
4231 #endif
4232 
4233   // initialize thread priority policy
4234   prio_init();
4235 
4236   if (UseNUMA && !ForceNUMA) {
4237     UseNUMA = false; // We don't fully support this yet
4238   }
4239 
4240   if (UseNUMAInterleaving || (UseNUMA && FLAG_IS_DEFAULT(UseNUMAInterleaving))) {
4241     if (!numa_interleaving_init()) {
4242       FLAG_SET_ERGO(UseNUMAInterleaving, false);
4243     } else if (!UseNUMAInterleaving) {
4244       // When NUMA requested, not-NUMA-aware allocations default to interleaving.
4245       FLAG_SET_ERGO(UseNUMAInterleaving, true);
4246     }
4247   }
4248 
4249   if (initSock() != JNI_OK) {
4250     return JNI_ERR;
4251   }
4252 
4253   SymbolEngine::recalc_search_path();
4254 
4255   // Initialize data for jdk.internal.misc.Signal
4256   if (!ReduceSignalUsage) {
4257     jdk_misc_signal_init();
4258   }

4216     // atexit functions can be delayed until process exit time, which
4217     // can be problematic for embedded VM situations. Embedded VMs should
4218     // call DestroyJavaVM() to assure that VM resources are released.
4219 
4220     // note: perfMemory_exit_helper atexit function may be removed in
4221     // the future if the appropriate cleanup code can be added to the
4222     // VM_Exit VMOperation's doit method.
4223     if (atexit(perfMemory_exit_helper) != 0) {
4224       warning("os::init_2 atexit(perfMemory_exit_helper) failed");
4225     }
4226   }
4227 
4228 #ifndef _WIN64
4229   // Print something if NX is enabled (win32 on AMD64)
4230   NOT_PRODUCT(if (PrintMiscellaneous && Verbose) nx_check_protection());
4231 #endif
4232 
4233   // initialize thread priority policy
4234   prio_init();
4235 
4236   UseNUMA = false; // We don't fully support this yet


4237 
4238   if (UseNUMAInterleaving || (UseNUMA && FLAG_IS_DEFAULT(UseNUMAInterleaving))) {
4239     if (!numa_interleaving_init()) {
4240       FLAG_SET_ERGO(UseNUMAInterleaving, false);
4241     } else if (!UseNUMAInterleaving) {
4242       // When NUMA requested, not-NUMA-aware allocations default to interleaving.
4243       FLAG_SET_ERGO(UseNUMAInterleaving, true);
4244     }
4245   }
4246 
4247   if (initSock() != JNI_OK) {
4248     return JNI_ERR;
4249   }
4250 
4251   SymbolEngine::recalc_search_path();
4252 
4253   // Initialize data for jdk.internal.misc.Signal
4254   if (!ReduceSignalUsage) {
4255     jdk_misc_signal_init();
4256   }
< prev index next >