< prev index next >

src/hotspot/share/gc/z/zArguments.cpp

Print this page

 89   // Enable loop strip mining by default
 90   if (FLAG_IS_DEFAULT(UseCountedLoopSafepoints)) {
 91     FLAG_SET_DEFAULT(UseCountedLoopSafepoints, true);
 92     if (FLAG_IS_DEFAULT(LoopStripMiningIter)) {
 93       FLAG_SET_DEFAULT(LoopStripMiningIter, 1000);
 94     }
 95   }
 96 #endif
 97 
 98   // CompressedOops not supported
 99   FLAG_SET_DEFAULT(UseCompressedOops, false);
100 
101   // Verification before startup and after exit not (yet) supported
102   FLAG_SET_DEFAULT(VerifyDuringStartup, false);
103   FLAG_SET_DEFAULT(VerifyBeforeExit, false);
104 
105   if (VerifyBeforeGC || VerifyDuringGC || VerifyAfterGC) {
106     FLAG_SET_DEFAULT(ZVerifyRoots, true);
107     FLAG_SET_DEFAULT(ZVerifyObjects, true);
108   }



109 }
110 
111 size_t ZArguments::heap_virtual_to_physical_ratio() {
112   return ZHeapViews * ZVirtualToPhysicalRatio;
113 }
114 
115 size_t ZArguments::conservative_max_heap_alignment() {
116   return 0;
117 }
118 
119 CollectedHeap* ZArguments::create_heap() {
120   return new ZCollectedHeap();
121 }
122 
123 bool ZArguments::is_supported() const {
124   return is_os_supported();
125 }

 89   // Enable loop strip mining by default
 90   if (FLAG_IS_DEFAULT(UseCountedLoopSafepoints)) {
 91     FLAG_SET_DEFAULT(UseCountedLoopSafepoints, true);
 92     if (FLAG_IS_DEFAULT(LoopStripMiningIter)) {
 93       FLAG_SET_DEFAULT(LoopStripMiningIter, 1000);
 94     }
 95   }
 96 #endif
 97 
 98   // CompressedOops not supported
 99   FLAG_SET_DEFAULT(UseCompressedOops, false);
100 
101   // Verification before startup and after exit not (yet) supported
102   FLAG_SET_DEFAULT(VerifyDuringStartup, false);
103   FLAG_SET_DEFAULT(VerifyBeforeExit, false);
104 
105   if (VerifyBeforeGC || VerifyDuringGC || VerifyAfterGC) {
106     FLAG_SET_DEFAULT(ZVerifyRoots, true);
107     FLAG_SET_DEFAULT(ZVerifyObjects, true);
108   }
109 
110   // Cannot currently support stack-locking with Lilliput and ZGC.
111   FLAG_SET_DEFAULT(UseHeavyMonitors, true);
112 }
113 
114 size_t ZArguments::heap_virtual_to_physical_ratio() {
115   return ZHeapViews * ZVirtualToPhysicalRatio;
116 }
117 
118 size_t ZArguments::conservative_max_heap_alignment() {
119   return 0;
120 }
121 
122 CollectedHeap* ZArguments::create_heap() {
123   return new ZCollectedHeap();
124 }
125 
126 bool ZArguments::is_supported() const {
127   return is_os_supported();
128 }
< prev index next >