hotspot/src/share/vm/gc/g1/g1HotCardCache.hpp
author tschatzl
Thu, 06 Aug 2015 15:49:50 +0200
changeset 32185 49a57ff2c3cb
parent 30764 fec48bf5a827
child 33204 b8a3901ac5b3
permissions -rw-r--r--
8073052: Rename and clean up the allocation manager hierarchy in g1Allocator.?pp Summary: Fix naming of G1ParGCAllocator, decrease dependencies between G1CollectedHeap, G1Allocator and G1AllocRegion, additional documentation. Reviewed-by: mgerdin, jmasa, kbarrett
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
17327
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
     1
/*
28831
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
     2
 * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
17327
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
     4
 *
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
     7
 * published by the Free Software Foundation.
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
     8
 *
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    13
 * accompanied this code).
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    14
 *
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    18
 *
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    21
 * questions.
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    22
 *
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    23
 */
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    24
30764
fec48bf5a827 8079792: GC directory structure cleanup
pliden
parents: 30175
diff changeset
    25
#ifndef SHARE_VM_GC_G1_G1HOTCARDCACHE_HPP
fec48bf5a827 8079792: GC directory structure cleanup
pliden
parents: 30175
diff changeset
    26
#define SHARE_VM_GC_G1_G1HOTCARDCACHE_HPP
17327
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    27
30764
fec48bf5a827 8079792: GC directory structure cleanup
pliden
parents: 30175
diff changeset
    28
#include "gc/g1/g1CardCounts.hpp"
fec48bf5a827 8079792: GC directory structure cleanup
pliden
parents: 30175
diff changeset
    29
#include "gc/g1/g1_globals.hpp"
17327
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    30
#include "memory/allocation.hpp"
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    31
#include "runtime/safepoint.hpp"
30175
543725014c9d 8076457: Fix includes of inline.hpp in GC code
stefank
parents: 29203
diff changeset
    32
#include "runtime/thread.hpp"
17327
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    33
#include "utilities/globalDefinitions.hpp"
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    34
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    35
class DirtyCardQueue;
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    36
class G1CollectedHeap;
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    37
class G1RemSet;
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    38
class HeapRegion;
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    39
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    40
// An evicting cache of cards that have been logged by the G1 post
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    41
// write barrier. Placing a card in the cache delays the refinement
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    42
// of the card until the card is evicted, or the cache is drained
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    43
// during the next evacuation pause.
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    44
//
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    45
// The first thing the G1 post write barrier does is to check whether
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    46
// the card containing the updated pointer is already dirty and, if
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    47
// so, skips the remaining code in the barrier.
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    48
//
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    49
// Delaying the refinement of a card will make the card fail the
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    50
// first is_dirty check in the write barrier, skipping the remainder
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    51
// of the write barrier.
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    52
//
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    53
// This can significantly reduce the overhead of the write barrier
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    54
// code, increasing throughput.
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    55
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    56
class G1HotCardCache: public CHeapObj<mtGC> {
28831
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
    57
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
    58
  G1CollectedHeap*  _g1h;
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
    59
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
    60
  bool              _use_cache;
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
    61
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
    62
  G1CardCounts      _card_counts;
17327
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    63
29203
5024f7b3322c 8058446: G1 Hot card cache should use ArrayAllocator to allocate the cache array
tschatzl
parents: 28831
diff changeset
    64
  ArrayAllocator<jbyte*, mtGC> _hot_cache_memory;
5024f7b3322c 8058446: G1 Hot card cache should use ArrayAllocator to allocate the cache array
tschatzl
parents: 28831
diff changeset
    65
17327
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    66
  // The card cache table
28831
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
    67
  jbyte**           _hot_cache;
17327
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    68
28831
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
    69
  size_t            _hot_cache_size;
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
    70
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
    71
  int               _hot_cache_par_chunk_size;
17327
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    72
28831
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
    73
  // Avoids false sharing when concurrently updating _hot_cache_idx or
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
    74
  // _hot_cache_par_claimed_idx. These are never updated at the same time
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
    75
  // thus it's not necessary to separate them as well
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
    76
  char _pad_before[DEFAULT_CACHE_LINE_SIZE];
17327
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    77
28831
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
    78
  volatile size_t _hot_cache_idx;
17327
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    79
28831
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
    80
  volatile size_t _hot_cache_par_claimed_idx;
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
    81
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
    82
  char _pad_after[DEFAULT_CACHE_LINE_SIZE];
17327
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    83
26830
e67193c2ceda 8053998: Hot card cache flush chunk size too coarse grained
mlarsson
parents: 26160
diff changeset
    84
  // The number of cached cards a thread claims when flushing the cache
e67193c2ceda 8053998: Hot card cache flush chunk size too coarse grained
mlarsson
parents: 26160
diff changeset
    85
  static const int ClaimChunkSize = 32;
e67193c2ceda 8053998: Hot card cache flush chunk size too coarse grained
mlarsson
parents: 26160
diff changeset
    86
17327
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    87
  bool default_use_cache() const {
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    88
    return (G1ConcRSLogCacheSize > 0);
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    89
  }
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    90
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    91
 public:
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    92
  G1HotCardCache(G1CollectedHeap* g1h);
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    93
  ~G1HotCardCache();
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    94
26160
aba6b01cb988 8038423: G1: Decommit memory within heap
tschatzl
parents: 23855
diff changeset
    95
  void initialize(G1RegionToSpaceMapper* card_counts_storage);
17327
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    96
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    97
  bool use_cache() { return _use_cache; }
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    98
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
    99
  void set_use_cache(bool b) {
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   100
    _use_cache = (b ? default_use_cache() : false);
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   101
  }
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   102
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   103
  // Returns the card to be refined or NULL.
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   104
  //
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   105
  // Increments the count for given the card. if the card is not 'hot',
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   106
  // it is returned for immediate refining. Otherwise the card is
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   107
  // added to the hot card cache.
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   108
  // If there is enough room in the hot card cache for the card we're
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   109
  // adding, NULL is returned and no further action in needed.
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   110
  // If we evict a card from the cache to make room for the new card,
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   111
  // the evicted card is then returned for refinement.
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   112
  jbyte* insert(jbyte* card_ptr);
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   113
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   114
  // Refine the cards that have delayed as a result of
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   115
  // being in the cache.
23855
c4574075402c 8016302: Change type of the number of GC workers to unsigned int (2)
vkempik
parents: 17327
diff changeset
   116
  void drain(uint worker_i, G1RemSet* g1rs, DirtyCardQueue* into_cset_dcq);
17327
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   117
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   118
  // Set up for parallel processing of the cards in the hot cache
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   119
  void reset_hot_cache_claimed_index() {
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   120
    _hot_cache_par_claimed_idx = 0;
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   121
  }
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   122
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   123
  // Resets the hot card cache and discards the entries.
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   124
  void reset_hot_cache() {
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   125
    assert(SafepointSynchronize::is_at_safepoint(), "Should be at a safepoint");
30175
543725014c9d 8076457: Fix includes of inline.hpp in GC code
stefank
parents: 29203
diff changeset
   126
    assert(Thread::current_noinline()->is_VM_thread(), "Current thread should be the VMthread");
28831
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
   127
    if (default_use_cache()) {
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
   128
        reset_hot_cache_internal();
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
   129
    }
17327
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   130
  }
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   131
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   132
  // Zeros the values in the card counts table for entire committed heap
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   133
  void reset_card_counts();
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   134
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   135
  // Zeros the values in the card counts table for the given region
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   136
  void reset_card_counts(HeapRegion* hr);
28831
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
   137
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
   138
 private:
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
   139
  void reset_hot_cache_internal() {
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
   140
    assert(_hot_cache != NULL, "Logic");
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
   141
    _hot_cache_idx = 0;
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
   142
    for (size_t i = 0; i < _hot_cache_size; i++) {
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
   143
      _hot_cache[i] = NULL;
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
   144
    }
454224c7e3ba 8069273: Decrease Hot Card Cache Lock contention
redestad
parents: 26830
diff changeset
   145
  }
17327
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   146
};
4bd0581aa231 7176479: G1: JVM crashes on T5-8 system with 1.5 TB heap
johnc
parents:
diff changeset
   147
30764
fec48bf5a827 8079792: GC directory structure cleanup
pliden
parents: 30175
diff changeset
   148
#endif // SHARE_VM_GC_G1_G1HOTCARDCACHE_HPP