ulvis.paste.net - pastebin

Paste Search Dynamic
Recent pastes
jdk-9+181
  1.  for (uint worker_id = start; worker_id < end; worker_id += 1) {
  2.       WorkerThread* new_worker = null;
  3.       if (initializing || !InjectGCWorkerCreationFailure) {
  4.         new_worker = holder->install_worker(worker_id);
  5.       }
  6.       if (new_worker == null || !os::create_thread(new_worker, worker_type)) {
  7.         log_trace(gc, task)("WorkerManager::add_workers() : "
  8.                             "creation failed due to failed allocation of native %s",
  9.                             new_worker == null ?  "memory" : "thread");
  10.         if (new_worker != null) {
  11.            delete new_worker;
  12.         }
  13.         if (initializing) {
  14.           vm_exit_out_of_memory(0, OOM_MALLOC_ERROR, "Cannot create worker GC thread. Out of system resources.");
  15.         }
  16.         break;
  17.       }
  18.       created_workers++;
  19.       os::start_thread(new_worker);
  20.     }
Parsed in 0.041 seconds