equal
deleted
inserted
replaced
3516 return os::YIELD_UNKNOWN ; |
3516 return os::YIELD_UNKNOWN ; |
3517 } |
3517 } |
3518 |
3518 |
3519 void os::yield() { os::NakedYield(); } |
3519 void os::yield() { os::NakedYield(); } |
3520 |
3520 |
3521 void os::yield_all(int attempts) { |
3521 void os::yield_all() { |
3522 // Yields to all threads, including threads with lower priorities |
3522 // Yields to all threads, including threads with lower priorities |
3523 Sleep(1); |
3523 Sleep(1); |
3524 } |
3524 } |
3525 |
3525 |
3526 // Win32 only gives you access to seven real priorities at a time, |
3526 // Win32 only gives you access to seven real priorities at a time, |
3862 |
3862 |
3863 win32::initialize_system_info(); |
3863 win32::initialize_system_info(); |
3864 win32::setmode_streams(); |
3864 win32::setmode_streams(); |
3865 init_page_sizes((size_t) win32::vm_page_size()); |
3865 init_page_sizes((size_t) win32::vm_page_size()); |
3866 |
3866 |
3867 // For better scalability on MP systems (must be called after initialize_system_info) |
|
3868 #ifndef PRODUCT |
|
3869 if (is_MP()) { |
|
3870 NoYieldsInMicrolock = true; |
|
3871 } |
|
3872 #endif |
|
3873 // This may be overridden later when argument processing is done. |
3867 // This may be overridden later when argument processing is done. |
3874 FLAG_SET_ERGO(bool, UseLargePagesIndividualAllocation, |
3868 FLAG_SET_ERGO(bool, UseLargePagesIndividualAllocation, |
3875 os::win32::is_windows_2003()); |
3869 os::win32::is_windows_2003()); |
3876 |
3870 |
3877 // Initialize main_process and main_thread |
3871 // Initialize main_process and main_thread |