src/hotspot/share/gc/z/zDriver.cpp
changeset 57658 0022b39ae5ae
parent 57656 9429ecaee2e0
child 58679 9c3209ff7550
child 58701 5d10ba4a0468
equal deleted inserted replaced
57657:22e12dd8f21a 57658:0022b39ae5ae
   209     ZHeap::heap()->relocate_start();
   209     ZHeap::heap()->relocate_start();
   210     return true;
   210     return true;
   211   }
   211   }
   212 };
   212 };
   213 
   213 
       
   214 class VM_ZVerify : public VM_Operation {
       
   215 public:
       
   216   virtual VMOp_Type type() const {
       
   217     return VMOp_ZVerify;
       
   218   }
       
   219 
       
   220   virtual void doit() {
       
   221     ZVerify::after_weak_processing();
       
   222   }
       
   223 };
       
   224 
   214 ZDriver::ZDriver() :
   225 ZDriver::ZDriver() :
   215     _gc_cycle_port(),
   226     _gc_cycle_port(),
   216     _gc_locker_port() {
   227     _gc_locker_port() {
   217   set_name("ZDriver");
   228   set_name("ZDriver");
   218   create_and_start();
   229   create_and_start();
   306 void ZDriver::pause_verify() {
   317 void ZDriver::pause_verify() {
   307   if (VerifyBeforeGC || VerifyDuringGC || VerifyAfterGC) {
   318   if (VerifyBeforeGC || VerifyDuringGC || VerifyAfterGC) {
   308     // Full verification
   319     // Full verification
   309     VM_Verify op;
   320     VM_Verify op;
   310     VMThread::execute(&op);
   321     VMThread::execute(&op);
   311 
       
   312   } else if (ZVerifyRoots || ZVerifyObjects) {
   322   } else if (ZVerifyRoots || ZVerifyObjects) {
   313     // Limited verification
   323     // Limited verification
   314     VM_ZVerifyOperation op;
   324     VM_ZVerify op;
   315     VMThread::execute(&op);
   325     VMThread::execute(&op);
   316   }
   326   }
   317 }
   327 }
   318 
   328 
   319 void ZDriver::concurrent_select_relocation_set() {
   329 void ZDriver::concurrent_select_relocation_set() {