src/hotspot/share/gc/g1/g1YoungRemSetSamplingThread.cpp
changeset 53034 de99beff5c0e
parent 52918 f94c7929a44b
child 53092 2a8dfb750d2c
equal deleted inserted replaced
53033:dcbb71b9e7c0 53034:de99beff5c0e
     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() {