Lines Matching defs:which

148   // in which case we have to free it explicitly.
600 GCTaskThread* GCTaskManager::thread(uint which) {
601 assert(which < created_workers(), "index out of bounds");
602 assert(_thread[which] != NULL, "shouldn't have null thread");
603 return _thread[which];
606 void GCTaskManager::set_thread(uint which, GCTaskThread* value) {
608 assert(which < workers(), "index out of bounds");
610 _thread[which] = value;
648 // a notify is sent to the waiting GC workers which then
653 GCTask* GCTaskManager::get_task(uint which) {
660 (queue()->is_empty() && !should_release_resources(which))) {
666 which,
669 should_release_resources(which) ? "true" : "false");
676 // Figure out which condition caused us to exit the loop above.
679 result = queue()->dequeue(which);
684 assert(which != sentinel_worker(),
686 set_blocking_worker(which);
697 which, p2i(result), GCTask::Kind::to_string(result->kind()));
708 void GCTaskManager::note_completion(uint which) {
711 tty->print_cr("GCTaskManager::note_completion(%u)", which);
714 if (blocking_worker() == which) {
725 tty->print_cr(" GCTaskManager::note_completion(%u) done", which);
730 which, monitor()->name());
737 should_release_resources(which) ? "true" : "false");
773 bool GCTaskManager::should_release_resources(uint which) {
775 return resource_flag(which);
778 void GCTaskManager::note_release(uint which) {
780 set_resource_flag(which, false);
792 // handed out in the order in which they are added to the list
806 // GC worker reads it (which is after the task is added
815 bool GCTaskManager::resource_flag(uint which) {
816 assert(which < workers(), "index out of bounds");
817 return _resource_flag[which];
820 void GCTaskManager::set_resource_flag(uint which, bool value) {
821 assert(which < workers(), "index out of bounds");
822 _resource_flag[which] = value;
869 void IdleGCTask::do_it(GCTaskManager* manager, uint which) {
875 log_trace(gc, task)("--- idle %d", which);
886 log_trace(gc, task)("--- release %d", which);
936 void WaitForBarrierGCTask::do_it_internal(GCTaskManager* manager, uint which) {
943 which, manager->busy_workers());
949 void WaitForBarrierGCTask::do_it(GCTaskManager* manager, uint which) {
958 do_it_internal(manager, which);