< prev index next >
src/hotspot/share/gc/g1/satbMarkQueue.cpp
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2001, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 38,48 ****
SATBMarkQueue::SATBMarkQueue(SATBMarkQueueSet* qset, bool permanent) :
// SATB queues are only active during marking cycles. We create
// them with their active field set to false. If a thread is
// created during a cycle and its SATB queue needs to be activated
// before the thread starts running, we'll need to set its active
! // field to true. This is done in JavaThread::initialize_queues().
PtrQueue(qset, permanent, false /* active */)
{ }
void SATBMarkQueue::flush() {
// Filter now to possibly save work later. If filtering empties the
--- 38,49 ----
SATBMarkQueue::SATBMarkQueue(SATBMarkQueueSet* qset, bool permanent) :
// SATB queues are only active during marking cycles. We create
// them with their active field set to false. If a thread is
// created during a cycle and its SATB queue needs to be activated
// before the thread starts running, we'll need to set its active
! // field to true. This is done in G1SATBCardTableLoggingModRefBS::
! // on_thread_create().
PtrQueue(qset, permanent, false /* active */)
{ }
void SATBMarkQueue::flush() {
// Filter now to possibly save work later. If filtering empties the
< prev index next >