Mercurial > hg > graal-compiler
comparison src/os/windows/vm/os_windows.cpp @ 113:ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
Summary: Compressed oops in instances, arrays, and headers. Code contributors are coleenp, phh, never, swamyv
Reviewed-by: jmasa, kamg, acorn, tbell, kvn, rasbold
author | coleenp |
---|---|
date | Sun, 13 Apr 2008 17:43:42 -0400 |
parents | 82db0859acbe |
children | 8bd1e4487c18 |
comparison
equal
deleted
inserted
replaced
110:a49a647afe9a | 113: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. |