comparison src/share/vm/memory/genCollectedHeap.cpp @ 880:2b4230d1e589

6862295: JDWP threadid changes during debugging session (leading to ingored breakpoints) Summary: Correctly count full GC operations for framework collectors. Add ForceFullGCJVMTIEpilogues as a future work around if needed. Reviewed-by: jcoomes, alanb, ysr
author dcubed
date Tue, 28 Jul 2009 13:35:00 -0600
parents 27a80744a83b
children 16c930df1e9b
comparison
equal deleted inserted replaced
501:26bc4770e671 880:2b4230d1e589
1 /* 1 /*
2 * Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved. 2 * Copyright 2000-2009 Sun Microsystems, Inc. All Rights Reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
454 bool must_restore_marks_for_biased_locking = false; 454 bool must_restore_marks_for_biased_locking = false;
455 455
456 int max_level_collected = starting_level; 456 int max_level_collected = starting_level;
457 for (int i = starting_level; i <= max_level; i++) { 457 for (int i = starting_level; i <= max_level; i++) {
458 if (_gens[i]->should_collect(full, size, is_tlab)) { 458 if (_gens[i]->should_collect(full, size, is_tlab)) {
459 if (i == n_gens() - 1) { // a major collection is to happen
460 if (!complete) {
461 // The full_collections increment was missed above.
462 increment_total_full_collections();
463 }
464 }
459 // Timer for individual generations. Last argument is false: no CR 465 // Timer for individual generations. Last argument is false: no CR
460 TraceTime t1(_gens[i]->short_name(), PrintGCDetails, false, gclog_or_tty); 466 TraceTime t1(_gens[i]->short_name(), PrintGCDetails, false, gclog_or_tty);
461 TraceCollectorStats tcs(_gens[i]->counters()); 467 TraceCollectorStats tcs(_gens[i]->counters());
462 TraceMemoryManagerStats tmms(_gens[i]->kind()); 468 TraceMemoryManagerStats tmms(_gens[i]->kind());
463 469