equal
deleted
inserted
replaced
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: " |