Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/src/os/windows/vm/os_windows.cpp Fri Apr 11 09:56:35 2008 -0400 +++ b/src/os/windows/vm/os_windows.cpp Sun Apr 13 17:43:42 2008 -0400 @@ -3116,7 +3116,7 @@ // as reserve size, since on a 64-bit platform we'll run into that more // often than running out of virtual memory space. We can use the // lower value of the two calculations as the os_thread_limit. - size_t max_address_space = ((size_t)1 << (BitsPerOop - 1)) - (200 * K * K); + size_t max_address_space = ((size_t)1 << (BitsPerWord - 1)) - (200 * K * K); win32::_os_thread_limit = (intx)(max_address_space / actual_reserve_size); // at exit methods are called in the reverse order of their registration.