Mercurial > hg > graal-compiler
comparison src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepThread.cpp @ 10405:f2110083203d
8005849: JEP 167: Event-Based JVM Tracing
Reviewed-by: acorn, coleenp, sla
Contributed-by: Karen Kinnear <karen.kinnear@oracle.com>, Bengt Rutisson <bengt.rutisson@oracle.com>, Calvin Cheung <calvin.cheung@oracle.com>, Erik Gahlin <erik.gahlin@oracle.com>, Erik Helin <erik.helin@oracle.com>, Jesper Wilhelmsson <jesper.wilhelmsson@oracle.com>, Keith McGuigan <keith.mcguigan@oracle.com>, Mattias Tobiasson <mattias.tobiasson@oracle.com>, Markus Gronlund <markus.gronlund@oracle.com>, Mikael Auno <mikael.auno@oracle.com>, Nils Eliasson <nils.eliasson@oracle.com>, Nils Loodin <nils.loodin@oracle.com>, Rickard Backman <rickard.backman@oracle.com>, Staffan Larsen <staffan.larsen@oracle.com>, Stefan Karlsson <stefan.karlsson@oracle.com>, Yekaterina Kantserova <yekaterina.kantserova@oracle.com>
author | sla |
---|---|
date | Mon, 10 Jun 2013 11:30:51 +0200 |
parents | a252e688abcf |
children | de6a9e811145 |
comparison
equal
deleted
inserted
replaced
10404:d0add7016434 | 10405:f2110083203d |
---|---|
138 } | 138 } |
139 | 139 |
140 while (!_should_terminate) { | 140 while (!_should_terminate) { |
141 sleepBeforeNextCycle(); | 141 sleepBeforeNextCycle(); |
142 if (_should_terminate) break; | 142 if (_should_terminate) break; |
143 _collector->collect_in_background(false); // !clear_all_soft_refs | 143 GCCause::Cause cause = _collector->_full_gc_requested ? |
144 _collector->_full_gc_cause : GCCause::_cms_concurrent_mark; | |
145 _collector->collect_in_background(false, cause); | |
144 } | 146 } |
145 assert(_should_terminate, "just checking"); | 147 assert(_should_terminate, "just checking"); |
146 // Check that the state of any protocol for synchronization | 148 // Check that the state of any protocol for synchronization |
147 // between background (CMS) and foreground collector is "clean" | 149 // between background (CMS) and foreground collector is "clean" |
148 // (i.e. will not potentially block the foreground collector, | 150 // (i.e. will not potentially block the foreground collector, |