comparison src/share/vm/gc_implementation/parallelScavenge/psParallelCompact.cpp @ 10285:4868caa99ecf

8014339: Improve assert and remove some dead code from parMarkBitMap.hpp/cpp Reviewed-by: stefank, tschatzl
author brutisso
date Mon, 13 May 2013 14:09:05 +0200
parents 2f50bc369470
children eba99d16dc6f
comparison
equal deleted inserted replaced
10284:7a95933197d0 10285:4868caa99ecf
946 _space_info[from_space_id].set_space(heap->young_gen()->from_space()); 946 _space_info[from_space_id].set_space(heap->young_gen()->from_space());
947 _space_info[to_space_id].set_space(heap->young_gen()->to_space()); 947 _space_info[to_space_id].set_space(heap->young_gen()->to_space());
948 948
949 pre_gc_values->fill(heap); 949 pre_gc_values->fill(heap);
950 950
951 NOT_PRODUCT(_mark_bitmap.reset_counters());
952 DEBUG_ONLY(add_obj_count = add_obj_size = 0;) 951 DEBUG_ONLY(add_obj_count = add_obj_size = 0;)
953 DEBUG_ONLY(mark_bitmap_count = mark_bitmap_size = 0;) 952 DEBUG_ONLY(mark_bitmap_count = mark_bitmap_size = 0;)
954 953
955 // Increment the invocation count 954 // Increment the invocation count
956 heap->increment_total_collections(true); 955 heap->increment_total_collections(true);
2040 bool marked_for_unloading = false; 2039 bool marked_for_unloading = false;
2041 2040
2042 marking_start.update(); 2041 marking_start.update();
2043 marking_phase(vmthread_cm, maximum_heap_compaction); 2042 marking_phase(vmthread_cm, maximum_heap_compaction);
2044 2043
2045 #ifndef PRODUCT
2046 if (TraceParallelOldGCMarkingPhase) {
2047 gclog_or_tty->print_cr("marking_phase: cas_tries %d cas_retries %d "
2048 "cas_by_another %d",
2049 mark_bitmap()->cas_tries(), mark_bitmap()->cas_retries(),
2050 mark_bitmap()->cas_by_another());
2051 }
2052 #endif // #ifndef PRODUCT
2053
2054 bool max_on_system_gc = UseMaximumCompactionOnSystemGC 2044 bool max_on_system_gc = UseMaximumCompactionOnSystemGC
2055 && gc_cause == GCCause::_java_lang_system_gc; 2045 && gc_cause == GCCause::_java_lang_system_gc;
2056 summary_phase(vmthread_cm, maximum_heap_compaction || max_on_system_gc); 2046 summary_phase(vmthread_cm, maximum_heap_compaction || max_on_system_gc);
2057 2047
2058 COMPILER2_PRESENT(assert(DerivedPointerTable::is_active(), "Sanity")); 2048 COMPILER2_PRESENT(assert(DerivedPointerTable::is_active(), "Sanity"));