23 * 24 */ 25 26 #ifndef CPU_S390_GLOBALS_S390_HPP 27 #define CPU_S390_GLOBALS_S390_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 // Sorted according to sparc. 35 36 // z/Architecture remembers branch targets, so don't share vtables. 37 define_pd_global(bool, ShareVtableStubs, true); 38 39 define_pd_global(bool, ImplicitNullChecks, true); // Generate code for implicit null checks. 40 define_pd_global(bool, TrapBasedNullChecks, true); 41 define_pd_global(bool, UncommonNullCast, true); // Uncommon-trap NULLs passed to check cast. 42 43 define_pd_global(uintx, CodeCacheSegmentSize, 256); 44 // This shall be at least 32 for proper branch target alignment. 45 // Ideally, this is 256 (cache line size). This keeps code end data 46 // on separate lines. But we reduced it to 64 since 256 increased 47 // code size significantly by padding nops between IVC and second UEP. 48 define_pd_global(intx, CodeEntryAlignment, 64); 49 define_pd_global(intx, OptoLoopAlignment, 2); 50 define_pd_global(intx, InlineFrequencyCount, 100); 51 define_pd_global(intx, InlineSmallCode, 2000); 52 53 #define DEFAULT_STACK_YELLOW_PAGES (2) 54 #define DEFAULT_STACK_RED_PAGES (1) 55 // Java_java_net_SocketOutputStream_socketWrite0() uses a 64k buffer on the 56 // stack. To pass stack overflow tests we need 20 shadow pages. 57 #define DEFAULT_STACK_SHADOW_PAGES (20 DEBUG_ONLY(+2)) 58 #define DEFAULT_STACK_RESERVED_PAGES (1) 59 60 #define MIN_STACK_YELLOW_PAGES DEFAULT_STACK_YELLOW_PAGES 61 #define MIN_STACK_RED_PAGES DEFAULT_STACK_RED_PAGES 62 #define MIN_STACK_SHADOW_PAGES DEFAULT_STACK_SHADOW_PAGES | 23 * 24 */ 25 26 #ifndef CPU_S390_GLOBALS_S390_HPP 27 #define CPU_S390_GLOBALS_S390_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 // Sorted according to sparc. 35 36 // z/Architecture remembers branch targets, so don't share vtables. 37 define_pd_global(bool, ShareVtableStubs, true); 38 39 define_pd_global(bool, ImplicitNullChecks, true); // Generate code for implicit null checks. 40 define_pd_global(bool, TrapBasedNullChecks, true); 41 define_pd_global(bool, UncommonNullCast, true); // Uncommon-trap NULLs passed to check cast. 42 43 define_pd_global(bool, UseFastClassInitChecks, false); // not implemented 44 45 define_pd_global(uintx, CodeCacheSegmentSize, 256); 46 // This shall be at least 32 for proper branch target alignment. 47 // Ideally, this is 256 (cache line size). This keeps code end data 48 // on separate lines. But we reduced it to 64 since 256 increased 49 // code size significantly by padding nops between IVC and second UEP. 50 define_pd_global(intx, CodeEntryAlignment, 64); 51 define_pd_global(intx, OptoLoopAlignment, 2); 52 define_pd_global(intx, InlineFrequencyCount, 100); 53 define_pd_global(intx, InlineSmallCode, 2000); 54 55 #define DEFAULT_STACK_YELLOW_PAGES (2) 56 #define DEFAULT_STACK_RED_PAGES (1) 57 // Java_java_net_SocketOutputStream_socketWrite0() uses a 64k buffer on the 58 // stack. To pass stack overflow tests we need 20 shadow pages. 59 #define DEFAULT_STACK_SHADOW_PAGES (20 DEBUG_ONLY(+2)) 60 #define DEFAULT_STACK_RESERVED_PAGES (1) 61 62 #define MIN_STACK_YELLOW_PAGES DEFAULT_STACK_YELLOW_PAGES 63 #define MIN_STACK_RED_PAGES DEFAULT_STACK_RED_PAGES 64 #define MIN_STACK_SHADOW_PAGES DEFAULT_STACK_SHADOW_PAGES |