comparison src/share/vm/gc/cms/concurrentMarkSweepThread.cpp @ 9396:983c56341c80

8134953: Make the GC ID available in a central place Reviewed-by: pliden, jmasa
author brutisso
date Wed, 30 Sep 2015 09:07:21 +0200
parents 1ca70c12a335
children f7dc8eebc3f5
comparison
equal deleted inserted replaced
1:0202e18c0ae7 2:6fb117b245f4
24 24
25 #include "precompiled.hpp" 25 #include "precompiled.hpp"
26 #include "classfile/systemDictionary.hpp" 26 #include "classfile/systemDictionary.hpp"
27 #include "gc/cms/concurrentMarkSweepGeneration.inline.hpp" 27 #include "gc/cms/concurrentMarkSweepGeneration.inline.hpp"
28 #include "gc/cms/concurrentMarkSweepThread.hpp" 28 #include "gc/cms/concurrentMarkSweepThread.hpp"
29 #include "gc/shared/gcId.hpp"
29 #include "gc/shared/genCollectedHeap.hpp" 30 #include "gc/shared/genCollectedHeap.hpp"
30 #include "oops/instanceRefKlass.hpp" 31 #include "oops/instanceRefKlass.hpp"
31 #include "oops/oop.inline.hpp" 32 #include "oops/oop.inline.hpp"
32 #include "runtime/init.hpp" 33 #include "runtime/init.hpp"
33 #include "runtime/interfaceSupport.hpp" 34 #include "runtime/interfaceSupport.hpp"
122 } 123 }
123 124
124 while (!_should_terminate) { 125 while (!_should_terminate) {
125 sleepBeforeNextCycle(); 126 sleepBeforeNextCycle();
126 if (_should_terminate) break; 127 if (_should_terminate) break;
128 GCIdMark gc_id_mark;
127 GCCause::Cause cause = _collector->_full_gc_requested ? 129 GCCause::Cause cause = _collector->_full_gc_requested ?
128 _collector->_full_gc_cause : GCCause::_cms_concurrent_mark; 130 _collector->_full_gc_cause : GCCause::_cms_concurrent_mark;
129 _collector->collect_in_background(cause); 131 _collector->collect_in_background(cause);
130 } 132 }
131 assert(_should_terminate, "just checking"); 133 assert(_should_terminate, "just checking");