src/os/windows/vm/os_windows.cpp

changeset 548
ba764ed4b6f2
parent 514
82db0859acbe
child 577
8bd1e4487c18
equal deleted inserted replaced
545:a49a647afe9a 548:ba764ed4b6f2
3114 // 3114 //
3115 // TODO: consider performing a similar calculation for commit size instead 3115 // TODO: consider performing a similar calculation for commit size instead
3116 // as reserve size, since on a 64-bit platform we'll run into that more 3116 // as reserve size, since on a 64-bit platform we'll run into that more
3117 // often than running out of virtual memory space. We can use the 3117 // often than running out of virtual memory space. We can use the
3118 // lower value of the two calculations as the os_thread_limit. 3118 // lower value of the two calculations as the os_thread_limit.
3119 size_t max_address_space = ((size_t)1 << (BitsPerOop - 1)) - (200 * K * K); 3119 size_t max_address_space = ((size_t)1 << (BitsPerWord - 1)) - (200 * K * K);
3120 win32::_os_thread_limit = (intx)(max_address_space / actual_reserve_size); 3120 win32::_os_thread_limit = (intx)(max_address_space / actual_reserve_size);
3121 3121
3122 // at exit methods are called in the reverse order of their registration. 3122 // at exit methods are called in the reverse order of their registration.
3123 // there is no limit to the number of functions registered. atexit does 3123 // there is no limit to the number of functions registered. atexit does
3124 // not set errno. 3124 // not set errno.

mercurial