< prev index next >

src/cpu/s390/vm/globals_s390.hpp

Print this page
rev 12487 : 8172049: [s390] Implement "JEP 270: Reserved Stack Areas for Critical Sections".
Reviewed-by: mdoerr


  39 
  40 define_pd_global(bool,  ImplicitNullChecks,          true);  // Generate code for implicit null checks.
  41 define_pd_global(bool,  TrapBasedNullChecks,         true);
  42 define_pd_global(bool,  UncommonNullCast,            true);  // Uncommon-trap NULLs passed to check cast.
  43 
  44 define_pd_global(uintx, CodeCacheSegmentSize,        256);
  45 // This shall be at least 32 for proper branch target alignment.
  46 // Ideally, this is 256 (cache line size). This keeps code end data
  47 // on separate lines. But we reduced it to 64 since 256 increased
  48 // code size significantly by padding nops between IVC and second UEP.
  49 define_pd_global(intx,  CodeEntryAlignment,          64);
  50 define_pd_global(intx,  OptoLoopAlignment,           2);
  51 define_pd_global(intx,  InlineFrequencyCount,        100);
  52 define_pd_global(intx,  InlineSmallCode,             2000);
  53 
  54 #define DEFAULT_STACK_YELLOW_PAGES   (2)
  55 #define DEFAULT_STACK_RED_PAGES      (1)
  56 // Java_java_net_SocketOutputStream_socketWrite0() uses a 64k buffer on the
  57 // stack. To pass stack overflow tests we need 20 shadow pages.
  58 #define DEFAULT_STACK_SHADOW_PAGES   (20 DEBUG_ONLY(+2))
  59 #define DEFAULT_STACK_RESERVED_PAGES (0)
  60 
  61 #define MIN_STACK_YELLOW_PAGES     DEFAULT_STACK_YELLOW_PAGES
  62 #define MIN_STACK_RED_PAGES        DEFAULT_STACK_RED_PAGES
  63 #define MIN_STACK_SHADOW_PAGES     DEFAULT_STACK_SHADOW_PAGES
  64 #define MIN_STACK_RESERVED_PAGES   (0)
  65 
  66 define_pd_global(intx,  StackYellowPages,            DEFAULT_STACK_YELLOW_PAGES);
  67 define_pd_global(intx,  StackRedPages,               DEFAULT_STACK_RED_PAGES);
  68 define_pd_global(intx,  StackShadowPages,            DEFAULT_STACK_SHADOW_PAGES);
  69 define_pd_global(intx,  StackReservedPages,          DEFAULT_STACK_RESERVED_PAGES);
  70 
  71 define_pd_global(bool, RewriteBytecodes,     true);
  72 define_pd_global(bool, RewriteFrequentPairs, true);
  73 
  74 define_pd_global(bool, UseMembar,            false);
  75 
  76 define_pd_global(bool, PreserveFramePointer, false);
  77 
  78 // GC Ergo Flags
  79 define_pd_global(size_t, CMSYoungGenPerWorker, 16*M);  // Default max size of CMS young gen, per GC worker thread.




  39 
  40 define_pd_global(bool,  ImplicitNullChecks,          true);  // Generate code for implicit null checks.
  41 define_pd_global(bool,  TrapBasedNullChecks,         true);
  42 define_pd_global(bool,  UncommonNullCast,            true);  // Uncommon-trap NULLs passed to check cast.
  43 
  44 define_pd_global(uintx, CodeCacheSegmentSize,        256);
  45 // This shall be at least 32 for proper branch target alignment.
  46 // Ideally, this is 256 (cache line size). This keeps code end data
  47 // on separate lines. But we reduced it to 64 since 256 increased
  48 // code size significantly by padding nops between IVC and second UEP.
  49 define_pd_global(intx,  CodeEntryAlignment,          64);
  50 define_pd_global(intx,  OptoLoopAlignment,           2);
  51 define_pd_global(intx,  InlineFrequencyCount,        100);
  52 define_pd_global(intx,  InlineSmallCode,             2000);
  53 
  54 #define DEFAULT_STACK_YELLOW_PAGES   (2)
  55 #define DEFAULT_STACK_RED_PAGES      (1)
  56 // Java_java_net_SocketOutputStream_socketWrite0() uses a 64k buffer on the
  57 // stack. To pass stack overflow tests we need 20 shadow pages.
  58 #define DEFAULT_STACK_SHADOW_PAGES   (20 DEBUG_ONLY(+2))
  59 #define DEFAULT_STACK_RESERVED_PAGES (1)
  60 
  61 #define MIN_STACK_YELLOW_PAGES     DEFAULT_STACK_YELLOW_PAGES
  62 #define MIN_STACK_RED_PAGES        DEFAULT_STACK_RED_PAGES
  63 #define MIN_STACK_SHADOW_PAGES     DEFAULT_STACK_SHADOW_PAGES
  64 #define MIN_STACK_RESERVED_PAGES   (0)
  65 
  66 define_pd_global(intx,  StackYellowPages,            DEFAULT_STACK_YELLOW_PAGES);
  67 define_pd_global(intx,  StackRedPages,               DEFAULT_STACK_RED_PAGES);
  68 define_pd_global(intx,  StackShadowPages,            DEFAULT_STACK_SHADOW_PAGES);
  69 define_pd_global(intx,  StackReservedPages,          DEFAULT_STACK_RESERVED_PAGES);
  70 
  71 define_pd_global(bool, RewriteBytecodes,     true);
  72 define_pd_global(bool, RewriteFrequentPairs, true);
  73 
  74 define_pd_global(bool, UseMembar,            false);
  75 
  76 define_pd_global(bool, PreserveFramePointer, false);
  77 
  78 // GC Ergo Flags
  79 define_pd_global(size_t, CMSYoungGenPerWorker, 16*M);  // Default max size of CMS young gen, per GC worker thread.


< prev index next >