src/share/vm/utilities/workgroup.cpp

changeset 4993
746b070f5022
parent 4967
5a9fa2ba85f0
child 5103
f9be75d21404
     1.1 --- a/src/share/vm/utilities/workgroup.cpp	Tue Apr 30 09:17:06 2013 -0400
     1.2 +++ b/src/share/vm/utilities/workgroup.cpp	Tue Apr 30 11:56:52 2013 -0700
     1.3 @@ -79,7 +79,7 @@
     1.4    }
     1.5    _gang_workers = NEW_C_HEAP_ARRAY(GangWorker*, total_workers(), mtInternal);
     1.6    if (gang_workers() == NULL) {
     1.7 -    vm_exit_out_of_memory(0, "Cannot create GangWorker array.");
     1.8 +    vm_exit_out_of_memory(0, OOM_MALLOC_ERROR, "Cannot create GangWorker array.");
     1.9      return false;
    1.10    }
    1.11    os::ThreadType worker_type;
    1.12 @@ -93,7 +93,8 @@
    1.13      assert(new_worker != NULL, "Failed to allocate GangWorker");
    1.14      _gang_workers[worker] = new_worker;
    1.15      if (new_worker == NULL || !os::create_thread(new_worker, worker_type)) {
    1.16 -      vm_exit_out_of_memory(0, "Cannot create worker GC thread. Out of system resources.");
    1.17 +      vm_exit_out_of_memory(0, OOM_MALLOC_ERROR,
    1.18 +              "Cannot create worker GC thread. Out of system resources.");
    1.19        return false;
    1.20      }
    1.21      if (!DisableStartThread) {

mercurial