< prev index next >

src/hotspot/share/runtime/arguments.cpp

Print this page
@@ -1602,10 +1602,16 @@
                                            (size_t)os::vm_allocation_granularity(),
                                            os::max_page_size(),
                                            GCArguments::compute_heap_alignment());
  }
  
+ void Arguments::set_use_chunk_bitmaps() {
+   if (FLAG_IS_DEFAULT(UseChunkBitmaps)) {
+     FLAG_SET_ERGO(UseChunkBitmaps, UseG1GC || UseParallelGC || UseSerialGC);
+   }
+ }
+ 
  jint Arguments::set_ergonomics_flags() {
    GCConfig::initialize();
  
    set_conservative_max_heap_alignment();
  

@@ -1618,10 +1624,12 @@
  
    // Also checks that certain machines are slower with compressed oops
    // in vm_version initialization code.
  #endif // _LP64
  
+   set_use_chunk_bitmaps();
+ 
    return JNI_OK;
  }
  
  size_t Arguments::limit_heap_by_allocatable_memory(size_t limit) {
    size_t max_allocatable;

@@ -4019,10 +4027,17 @@
    jint code = set_aggressive_opts_flags();
    if (code != JNI_OK) {
      return code;
    }
  
+   if (_mode == _int) {
+     if (SegmentedCodeCache) {
+       warning("SegmentedCodeCache has no meaningful effect with -Xint");
+       FLAG_SET_DEFAULT(SegmentedCodeCache, false);
+     }
+   }
+ 
  #ifdef ZERO
    // Clear flags not supported on zero.
    FLAG_SET_DEFAULT(ProfileInterpreter, false);
  
    if (LogTouchedMethods) {
< prev index next >