4539N/A * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. 4539N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4539N/A * This code is free software; you can redistribute it and/or modify it 4539N/A * under the terms of the GNU General Public License version 2 only, as 4539N/A * published by the Free Software Foundation. 4539N/A * This code is distributed in the hope that it will be useful, but WITHOUT 4539N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4539N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4539N/A * version 2 for more details (a copy is included in the LICENSE file that 4539N/A * You should have received a copy of the GNU General Public License version 4539N/A * 2 along with this work; if not, write to the Free Software Foundation, 4539N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4539N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4539N/A // For refining the cards in the hot cache in parallel 4539N/A // The card is not hot so do not store it in the cache; 4539N/A // return it for immediate refining. 4539N/A // Otherwise, the card is hot. 4539N/A // Now _n_hot < _hot_cache_size, and we can insert at _hot_cache_idx. 4539N/A // The current worker has successfully claimed the chunk [start_idx..end_idx) 4539N/A // The part of the heap spanned by the card contains references 4539N/A // that point into the current collection set. 4539N/A // We need to record the card pointer in the DirtyCardQueueSet 4539N/A // that we use for such cards. 4539N/A // The only time we care about recording cards that contain 4539N/A // references that point into the collection set is during 4539N/A // RSet updating while within an evacuation pause. 4539N/A // In this case worker_i should be the id of a GC worker thread 4539N/A // The existing entries in the hot card cache, which were just refined 4539N/A // above, are discarded prior to re-enabling the cache near the end of the GC.