comparison src/share/vm/gc_implementation/parallelScavenge/gcTaskThread.cpp @ 10161:746b070f5022

8011661: Insufficient memory message says "malloc" when sometimes it should say "mmap" Reviewed-by: coleenp, zgu, hseigel
author ccheung
date Tue, 30 Apr 2013 11:56:52 -0700
parents b9a9ed0f8eeb
children de6a9e811145
comparison
equal deleted inserted replaced
10160:ed5a590835a4 10161:746b070f5022
41 _processor_id(processor_id), 41 _processor_id(processor_id),
42 _time_stamps(NULL), 42 _time_stamps(NULL),
43 _time_stamp_index(0) 43 _time_stamp_index(0)
44 { 44 {
45 if (!os::create_thread(this, os::pgc_thread)) 45 if (!os::create_thread(this, os::pgc_thread))
46 vm_exit_out_of_memory(0, "Cannot create GC thread. Out of system resources."); 46 vm_exit_out_of_memory(0, OOM_MALLOC_ERROR, "Cannot create GC thread. Out of system resources.");
47 47
48 if (PrintGCTaskTimeStamps) { 48 if (PrintGCTaskTimeStamps) {
49 _time_stamps = NEW_C_HEAP_ARRAY(GCTaskTimeStamp, GCTaskTimeStampEntries, mtGC); 49 _time_stamps = NEW_C_HEAP_ARRAY(GCTaskTimeStamp, GCTaskTimeStampEntries, mtGC);
50 50
51 guarantee(_time_stamps != NULL, "Sanity"); 51 guarantee(_time_stamps != NULL, "Sanity");