< prev index next >

src/hotspot/share/oops/cpCache.inline.hpp

Print this page
@@ -1,7 +1,7 @@
  /*
-  * Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
+  * Copyright (c) 2018, 2021, 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.

@@ -87,11 +87,12 @@
  inline ConstantPoolCache::ConstantPoolCache(int length,
                                              const intStack& inverse_index_map,
                                              const intStack& invokedynamic_inverse_index_map,
                                              const intStack& invokedynamic_references_map) :
                                                    _length(length),
-                                                   _constant_pool(NULL) {
+                                                   _constant_pool(NULL),
+                                                   _marking_cycle(0) {
    CDS_JAVA_HEAP_ONLY(_archived_references_index = -1;)
    initialize(inverse_index_map, invokedynamic_inverse_index_map,
               invokedynamic_references_map);
    for (int i = 0; i < length; i++) {
      assert(entry_at(i)->is_f1_null(), "Failed to clear?");
< prev index next >