13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/systemDictionary.hpp"
27 #include "gc/cms/cmsHeap.hpp"
28 #include "gc/cms/concurrentMarkSweepGeneration.inline.hpp"
29 #include "gc/cms/concurrentMarkSweepThread.hpp"
30 #include "gc/shared/gcId.hpp"
31 #include "oops/oop.inline.hpp"
32 #include "runtime/init.hpp"
33 #include "runtime/interfaceSupport.hpp"
34 #include "runtime/java.hpp"
35 #include "runtime/javaCalls.hpp"
36 #include "runtime/mutexLocker.hpp"
37 #include "runtime/os.hpp"
38 #include "runtime/vmThread.hpp"
39
40 // ======= Concurrent Mark Sweep Thread ========
41
42 ConcurrentMarkSweepThread* ConcurrentMarkSweepThread::_cmst = NULL;
43 CMSCollector* ConcurrentMarkSweepThread::_collector = NULL;
44 int ConcurrentMarkSweepThread::_CMS_flag = CMS_nil;
45
46 volatile jint ConcurrentMarkSweepThread::_pending_yields = 0;
47
48 ConcurrentMarkSweepThread::ConcurrentMarkSweepThread(CMSCollector* collector)
49 : ConcurrentGCThread() {
50 assert(UseConcMarkSweepGC, "UseConcMarkSweepGC should be set");
51 assert(_cmst == NULL, "CMS thread already created");
52 _cmst = this;
53 assert(_collector == NULL, "Collector already set");
|
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/systemDictionary.hpp"
27 #include "gc/cms/cmsHeap.hpp"
28 #include "gc/cms/concurrentMarkSweepGeneration.inline.hpp"
29 #include "gc/cms/concurrentMarkSweepThread.hpp"
30 #include "gc/shared/gcId.hpp"
31 #include "oops/oop.inline.hpp"
32 #include "runtime/init.hpp"
33 #include "runtime/java.hpp"
34 #include "runtime/javaCalls.hpp"
35 #include "runtime/mutexLocker.hpp"
36 #include "runtime/os.hpp"
37 #include "runtime/vmThread.hpp"
38
39 // ======= Concurrent Mark Sweep Thread ========
40
41 ConcurrentMarkSweepThread* ConcurrentMarkSweepThread::_cmst = NULL;
42 CMSCollector* ConcurrentMarkSweepThread::_collector = NULL;
43 int ConcurrentMarkSweepThread::_CMS_flag = CMS_nil;
44
45 volatile jint ConcurrentMarkSweepThread::_pending_yields = 0;
46
47 ConcurrentMarkSweepThread::ConcurrentMarkSweepThread(CMSCollector* collector)
48 : ConcurrentGCThread() {
49 assert(UseConcMarkSweepGC, "UseConcMarkSweepGC should be set");
50 assert(_cmst == NULL, "CMS thread already created");
51 _cmst = this;
52 assert(_collector == NULL, "Collector already set");
|