Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/parNew/parNewGeneration.cpp @ 269:850fdf70db2b
Merge
author | jmasa |
---|---|
date | Mon, 28 Jul 2008 15:30:23 -0700 |
parents | d1605aabd0a1 12eea04c8b06 |
children | c96030fff130 |
comparison
equal
deleted
inserted
replaced
238:3df2fe7c4451 | 269:850fdf70db2b |
---|---|
725 size_t gch_prev_used = gch->used(); | 725 size_t gch_prev_used = gch->used(); |
726 | 726 |
727 SpecializationStats::clear(); | 727 SpecializationStats::clear(); |
728 | 728 |
729 age_table()->clear(); | 729 age_table()->clear(); |
730 to()->clear(); | 730 to()->clear(SpaceDecorator::Mangle); |
731 | 731 |
732 gch->save_marks(); | 732 gch->save_marks(); |
733 assert(workers != NULL, "Need parallel worker threads."); | 733 assert(workers != NULL, "Need parallel worker threads."); |
734 ParallelTaskTerminator _term(workers->total_workers(), task_queues()); | 734 ParallelTaskTerminator _term(workers->total_workers(), task_queues()); |
735 ParScanThreadStateSet thread_state_set(workers->total_workers(), | 735 ParScanThreadStateSet thread_state_set(workers->total_workers(), |
791 soft_ref_policy, &is_alive, &keep_alive, &evacuate_followers, | 791 soft_ref_policy, &is_alive, &keep_alive, &evacuate_followers, |
792 NULL); | 792 NULL); |
793 } | 793 } |
794 if (!promotion_failed()) { | 794 if (!promotion_failed()) { |
795 // Swap the survivor spaces. | 795 // Swap the survivor spaces. |
796 eden()->clear(); | 796 eden()->clear(SpaceDecorator::Mangle); |
797 from()->clear(); | 797 from()->clear(SpaceDecorator::Mangle); |
798 if (ZapUnusedHeapArea) { | |
799 // This is now done here because of the piece-meal mangling which | |
800 // can check for valid mangling at intermediate points in the | |
801 // collection(s). When a minor collection fails to collect | |
802 // sufficient space resizing of the young generation can occur | |
803 // an redistribute the spaces in the young generation. Mangle | |
804 // here so that unzapped regions don't get distributed to | |
805 // other spaces. | |
806 to()->mangle_unused_area(); | |
807 } | |
798 swap_spaces(); | 808 swap_spaces(); |
799 | 809 |
800 assert(to()->is_empty(), "to space should be empty now"); | 810 assert(to()->is_empty(), "to space should be empty now"); |
801 } else { | 811 } else { |
802 assert(HandlePromotionFailure, | 812 assert(HandlePromotionFailure, |