comparison src/share/vm/prims/jvmtiExport.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 37f87013dfd8
children 16c930df1e9b 98cd9901c161
comparison
equal deleted inserted replaced
501:26bc4770e671 880:2b4230d1e589
1 /* 1 /*
2 * Copyright 2003-2007 Sun Microsystems, Inc. All Rights Reserved. 2 * Copyright 2003-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.
2419 // if there aren't any JVMTI environments then nothing to do 2419 // if there aren't any JVMTI environments then nothing to do
2420 if (!JvmtiEnv::environments_might_exist()) { 2420 if (!JvmtiEnv::environments_might_exist()) {
2421 return; 2421 return;
2422 } 2422 }
2423 2423
2424 if (ForceFullGCJVMTIEpilogues) {
2425 // force 'Full GC' was done semantics for JVMTI GC epilogues
2426 _full = true;
2427 }
2428
2424 // GarbageCollectionStart event posted from VM thread - okay because 2429 // GarbageCollectionStart event posted from VM thread - okay because
2425 // JVMTI is clear that the "world is stopped" and callback shouldn't 2430 // JVMTI is clear that the "world is stopped" and callback shouldn't
2426 // try to call into the VM. 2431 // try to call into the VM.
2427 if (JvmtiExport::should_post_garbage_collection_start()) { 2432 if (JvmtiExport::should_post_garbage_collection_start()) {
2428 JvmtiExport::post_garbage_collection_start(); 2433 JvmtiExport::post_garbage_collection_start();