hotspot/src/share/vm/services/attachListener.cpp
changeset 2141 e9a644aaff87
parent 1 489c9b5090e2
child 4437 d1abc17afffb
equal deleted inserted replaced
2124:6222ebfe4292 2141:e9a644aaff87
   192       out->print_cr("Invalid argument to inspectheap operation: %s", arg0);
   192       out->print_cr("Invalid argument to inspectheap operation: %s", arg0);
   193       return JNI_ERR;
   193       return JNI_ERR;
   194     }
   194     }
   195     live_objects_only = strcmp(arg0, "-live") == 0;
   195     live_objects_only = strcmp(arg0, "-live") == 0;
   196   }
   196   }
   197   VM_GC_HeapInspection heapop(out, live_objects_only /* request gc */);
   197   VM_GC_HeapInspection heapop(out, live_objects_only /* request full gc */, true /* need_prologue */);
   198   VMThread::execute(&heapop);
   198   VMThread::execute(&heapop);
   199   return JNI_OK;
   199   return JNI_OK;
   200 }
   200 }
   201 
   201 
   202 // set a boolean global flag using value from AttachOperation
   202 // set a boolean global flag using value from AttachOperation