21 * or visit www.oracle.com if you need additional information or have any 22 * questions. 23 * 24 */ 25 26 #ifndef CPU_PPC_GLOBALS_PPC_HPP 27 #define CPU_PPC_GLOBALS_PPC_HPP 28 29 #include "utilities/globalDefinitions.hpp" 30 #include "utilities/macros.hpp" 31 32 // Sets the default values for platform dependent flags used by the runtime system. 33 // (see globals.hpp) 34 35 define_pd_global(bool, ShareVtableStubs, true); 36 37 define_pd_global(bool, ImplicitNullChecks, true); // Generate code for implicit null checks. 38 define_pd_global(bool, TrapBasedNullChecks, true); 39 define_pd_global(bool, UncommonNullCast, true); // Uncommon-trap NULLs passed to check cast. 40 41 #define DEFAULT_STACK_YELLOW_PAGES (2) 42 #define DEFAULT_STACK_RED_PAGES (1) 43 // Java_java_net_SocketOutputStream_socketWrite0() uses a 64k buffer on the 44 // stack if compiled for unix and LP64. To pass stack overflow tests we need 45 // 20 shadow pages. 46 #define DEFAULT_STACK_SHADOW_PAGES (20 DEBUG_ONLY(+2)) 47 #define DEFAULT_STACK_RESERVED_PAGES (1) 48 49 #define MIN_STACK_YELLOW_PAGES DEFAULT_STACK_YELLOW_PAGES 50 #define MIN_STACK_RED_PAGES DEFAULT_STACK_RED_PAGES 51 #define MIN_STACK_SHADOW_PAGES (3 DEBUG_ONLY(+1)) 52 #define MIN_STACK_RESERVED_PAGES (0) 53 54 define_pd_global(intx, StackYellowPages, DEFAULT_STACK_YELLOW_PAGES); 55 define_pd_global(intx, StackRedPages, DEFAULT_STACK_RED_PAGES); 56 define_pd_global(intx, StackShadowPages, DEFAULT_STACK_SHADOW_PAGES); 57 define_pd_global(intx, StackReservedPages, DEFAULT_STACK_RESERVED_PAGES); 58 59 // Use large code-entry alignment. 60 define_pd_global(uintx, CodeCacheSegmentSize, 128); | 21 * or visit www.oracle.com if you need additional information or have any 22 * questions. 23 * 24 */ 25 26 #ifndef CPU_PPC_GLOBALS_PPC_HPP 27 #define CPU_PPC_GLOBALS_PPC_HPP 28 29 #include "utilities/globalDefinitions.hpp" 30 #include "utilities/macros.hpp" 31 32 // Sets the default values for platform dependent flags used by the runtime system. 33 // (see globals.hpp) 34 35 define_pd_global(bool, ShareVtableStubs, true); 36 37 define_pd_global(bool, ImplicitNullChecks, true); // Generate code for implicit null checks. 38 define_pd_global(bool, TrapBasedNullChecks, true); 39 define_pd_global(bool, UncommonNullCast, true); // Uncommon-trap NULLs passed to check cast. 40 41 define_pd_global(bool, UseFastClassInitChecks, false); // not implemented 42 43 #define DEFAULT_STACK_YELLOW_PAGES (2) 44 #define DEFAULT_STACK_RED_PAGES (1) 45 // Java_java_net_SocketOutputStream_socketWrite0() uses a 64k buffer on the 46 // stack if compiled for unix and LP64. To pass stack overflow tests we need 47 // 20 shadow pages. 48 #define DEFAULT_STACK_SHADOW_PAGES (20 DEBUG_ONLY(+2)) 49 #define DEFAULT_STACK_RESERVED_PAGES (1) 50 51 #define MIN_STACK_YELLOW_PAGES DEFAULT_STACK_YELLOW_PAGES 52 #define MIN_STACK_RED_PAGES DEFAULT_STACK_RED_PAGES 53 #define MIN_STACK_SHADOW_PAGES (3 DEBUG_ONLY(+1)) 54 #define MIN_STACK_RESERVED_PAGES (0) 55 56 define_pd_global(intx, StackYellowPages, DEFAULT_STACK_YELLOW_PAGES); 57 define_pd_global(intx, StackRedPages, DEFAULT_STACK_RED_PAGES); 58 define_pd_global(intx, StackShadowPages, DEFAULT_STACK_SHADOW_PAGES); 59 define_pd_global(intx, StackReservedPages, DEFAULT_STACK_RESERVED_PAGES); 60 61 // Use large code-entry alignment. 62 define_pd_global(uintx, CodeCacheSegmentSize, 128); |