comparison src/share/vm/gc/parallel/psMarkSweep.cpp @ 8479:f08536ebf811

8072913: [REDO] GCCause should distinguish jcmd GC.run from System.gc() Summary: GCCause which is caused by GC.run diagnostic command should be different from System.gc() . Reviewed-by: jmasa, jwilhelm
author ysuenaga
date Wed, 03 Jun 2015 08:49:34 +0900
parents 92457dfb91bd
children 8597e296c18b
comparison
equal deleted inserted replaced
0:cb254c9c561c 1:b19f666feb64
270 } 270 }
271 271
272 // Don't check if the size_policy is ready here. Let 272 // Don't check if the size_policy is ready here. Let
273 // the size_policy check that internally. 273 // the size_policy check that internally.
274 if (UseAdaptiveGenerationSizePolicyAtMajorCollection && 274 if (UseAdaptiveGenerationSizePolicyAtMajorCollection &&
275 ((gc_cause != GCCause::_java_lang_system_gc) || 275 (!GCCause::is_user_requested_gc(gc_cause) ||
276 UseAdaptiveSizePolicyWithSystemGC)) { 276 UseAdaptiveSizePolicyWithSystemGC)) {
277 // Swap the survivor spaces if from_space is empty. The 277 // Swap the survivor spaces if from_space is empty. The
278 // resize_young_gen() called below is normally used after 278 // resize_young_gen() called below is normally used after
279 // a successful young GC and swapping of survivor spaces; 279 // a successful young GC and swapping of survivor spaces;
280 // otherwise, it will fail to resize the young gen with 280 // otherwise, it will fail to resize the young gen with