src/share/vm/gc_implementation/parallelScavenge/parallelScavengeHeap.cpp

changeset 4743
82657b6a8cc0
parent 4037
da91efe96a93
child 4785
3c226052f7dc
equal deleted inserted replaced
4742:993d878108d9 4743:82657b6a8cc0
407 // starts with a clean slate (i.e., forgets about previous overhead 407 // starts with a clean slate (i.e., forgets about previous overhead
408 // excesses). Fill op.result() with a filler object so that the 408 // excesses). Fill op.result() with a filler object so that the
409 // heap remains parsable. 409 // heap remains parsable.
410 const bool limit_exceeded = size_policy()->gc_overhead_limit_exceeded(); 410 const bool limit_exceeded = size_policy()->gc_overhead_limit_exceeded();
411 const bool softrefs_clear = collector_policy()->all_soft_refs_clear(); 411 const bool softrefs_clear = collector_policy()->all_soft_refs_clear();
412 assert(!limit_exceeded || softrefs_clear, "Should have been cleared"); 412
413 if (limit_exceeded && softrefs_clear) { 413 if (limit_exceeded && softrefs_clear) {
414 *gc_overhead_limit_was_exceeded = true; 414 *gc_overhead_limit_was_exceeded = true;
415 size_policy()->set_gc_overhead_limit_exceeded(false); 415 size_policy()->set_gc_overhead_limit_exceeded(false);
416 if (PrintGCDetails && Verbose) { 416 if (PrintGCDetails && Verbose) {
417 gclog_or_tty->print_cr("ParallelScavengeHeap::mem_allocate: " 417 gclog_or_tty->print_cr("ParallelScavengeHeap::mem_allocate: "

mercurial