src/hotspot/share/gc/g1/satbMarkQueue.cpp
changeset 49007 82d9d5744e5f
parent 48105 8d15b1369c7a
child 49347 edb65305d3ac
equal deleted inserted replaced
49006:c6d1c4ad90f4 49007:82d9d5744e5f
     1 /*
     1 /*
     2  * Copyright (c) 2001, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2001, 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 SATBMarkQueue::SATBMarkQueue(SATBMarkQueueSet* qset, bool permanent) :
    38 SATBMarkQueue::SATBMarkQueue(SATBMarkQueueSet* qset, bool permanent) :
    39   // SATB queues are only active during marking cycles. We create
    39   // SATB queues are only active during marking cycles. We create
    40   // them with their active field set to false. If a thread is
    40   // them with their active field set to false. If a thread is
    41   // created during a cycle and its SATB queue needs to be activated
    41   // created during a cycle and its SATB queue needs to be activated
    42   // before the thread starts running, we'll need to set its active
    42   // before the thread starts running, we'll need to set its active
    43   // field to true. This is done in JavaThread::initialize_queues().
    43   // field to true. This is done in G1SATBCardTableLoggingModRefBS::
       
    44   // on_thread_attach().
    44   PtrQueue(qset, permanent, false /* active */)
    45   PtrQueue(qset, permanent, false /* active */)
    45 { }
    46 { }
    46 
    47 
    47 void SATBMarkQueue::flush() {
    48 void SATBMarkQueue::flush() {
    48   // Filter now to possibly save work later.  If filtering empties the
    49   // Filter now to possibly save work later.  If filtering empties the