comparison src/cpu/x86/vm/globals_x86.hpp @ 10988:cd54c7e92908

8015660: Test8009761.java "Failed: init recursive calls: 24. After deopt 25" Summary: Windows reserves and only partially commits thread stack. For detecting more thread stack space for execution, Windows installs one-shot page as guard page just before the current commited edge. It will trigger STACK_OVERFLOW_EXCEPTION when lands on last 4 pages of thread stack space. StackYellowPages default value is 2 on Windows (plus 1 page of StackRedPages, 3 pages guarded by hotspot) so the exception happens one page before Yellow pages. Same route executed second time will have one more page brought in, this leads same execution with different stack depth(interpreter mode). We need match Windows settings so the stack overflow exception will not happen before Yellow pages. Reviewed-by: dholmes Contributed-by: andreas.schoesser@sap.com
author minqi
date Tue, 18 Jun 2013 09:08:35 -0700
parents 12f651e29f6b
children b800986664f4
comparison
equal deleted inserted replaced
10987:a5904a086d9f 10988:cd54c7e92908
1 /* 1 /*
2 * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
53 #endif // COMPILER2 53 #endif // COMPILER2
54 define_pd_global(intx, OptoLoopAlignment, 16); 54 define_pd_global(intx, OptoLoopAlignment, 16);
55 define_pd_global(intx, InlineFrequencyCount, 100); 55 define_pd_global(intx, InlineFrequencyCount, 100);
56 define_pd_global(intx, InlineSmallCode, 1000); 56 define_pd_global(intx, InlineSmallCode, 1000);
57 57
58 define_pd_global(intx, StackYellowPages, 2); 58 define_pd_global(intx, StackYellowPages, NOT_WINDOWS(2) WINDOWS_ONLY(3));
59 define_pd_global(intx, StackRedPages, 1); 59 define_pd_global(intx, StackRedPages, 1);
60 #ifdef AMD64 60 #ifdef AMD64
61 // Very large C++ stack frames using solaris-amd64 optimized builds 61 // Very large C++ stack frames using solaris-amd64 optimized builds
62 // due to lack of optimization caused by C++ compiler bugs 62 // due to lack of optimization caused by C++ compiler bugs
63 define_pd_global(intx, StackShadowPages, NOT_WIN64(20) WIN64_ONLY(6) DEBUG_ONLY(+2)); 63 define_pd_global(intx, StackShadowPages, NOT_WIN64(20) WIN64_ONLY(6) DEBUG_ONLY(+2));