1 |
--- jdk8/hotspot/src/os/linux/vm/os_linux.cpp Wed Oct 23 15:44:12 2013 -0700 |
2 |
+++ jdk8/hotspot/src/os/linux/vm/os_linux.cpp Thu Dec 19 16:03:33 2013 +0000 |
3 |
@@ -4797,9 +4797,19 @@ |
4 |
// size. Add a page for compiler2 recursion in main thread. |
5 |
// Add in 2*BytesPerWord times page size to account for VM stack during |
6 |
// class initialization depending on 32 or 64 bit VM. |
7 |
+ |
8 |
+ |
9 |
os::Linux::min_stack_allowed = MAX2(os::Linux::min_stack_allowed, |
10 |
(size_t)(StackYellowPages+StackRedPages+StackShadowPages) * Linux::page_size() + |
11 |
- (2*BytesPerWord COMPILER2_PRESENT(+1)) * Linux::vm_default_page_size()); |
12 |
+ (2*BytesPerWord COMPILER2_PRESENT(+1)) |
13 |
+ * |
14 |
+#ifdef PPC |
15 |
+ NOT_ZERO ( Linux::vm_default_page_size() ) |
16 |
+ ZERO_ONLY ( Linux::page_size() ) |
17 |
+#else |
18 |
+ ( Linux::vm_default_page_size() ) |
19 |
+#endif |
20 |
+ ); |
21 |
|
22 |
size_t threadStackSizeInBytes = ThreadStackSize * K; |
23 |
if (threadStackSizeInBytes != 0 && |