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. |