equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 2018, Oracle and/or its affiliates. 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. |
38 ConcurrentGCThread(), |
38 ConcurrentGCThread(), |
39 _monitor(Mutex::nonleaf, |
39 _monitor(Mutex::nonleaf, |
40 "G1YoungRemSetSamplingThread monitor", |
40 "G1YoungRemSetSamplingThread monitor", |
41 true, |
41 true, |
42 Monitor::_safepoint_check_never), |
42 Monitor::_safepoint_check_never), |
43 _last_periodic_gc_attempt_s(os::elapsedTime()) { |
43 _last_periodic_gc_attempt_s(os::elapsedTime()), |
|
44 _vtime_accum(0) { |
44 set_name("G1 Young RemSet Sampling"); |
45 set_name("G1 Young RemSet Sampling"); |
45 create_and_start(); |
46 create_and_start(); |
46 } |
47 } |
47 |
48 |
48 void G1YoungRemSetSamplingThread::sleep_before_next_cycle() { |
49 void G1YoungRemSetSamplingThread::sleep_before_next_cycle() { |