hotspot/src/share/vm/memory/metaspaceShared.hpp
author jiangli
Wed, 17 Dec 2014 23:34:52 -0500
changeset 28363 047115468f16
parent 28023 a4075664328d
child 30578 8b6c44532ca2
child 30291 54cdc5c1a9cb
permissions -rw-r--r--
8059510: Compact symbol table layout inside shared archive. Summary: Use separate compact table for shared symbols. Reviewed-by: iklam, gziemski, shade, sla, jrose
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
     1
/*
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
     2
 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
     4
 *
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
     7
 * published by the Free Software Foundation.
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
     8
 *
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    13
 * accompanied this code).
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    14
 *
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    18
 *
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    21
 * questions.
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    22
 *
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    23
 */
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    24
#ifndef SHARE_VM_MEMORY_METASPACE_SHARED_HPP
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    25
#define SHARE_VM_MEMORY_METASPACE_SHARED_HPP
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    26
28363
047115468f16 8059510: Compact symbol table layout inside shared archive.
jiangli
parents: 28023
diff changeset
    27
#include "classfile/compactHashtable.hpp"
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    28
#include "memory/allocation.hpp"
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    29
#include "memory/memRegion.hpp"
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    30
#include "runtime/virtualspace.hpp"
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    31
#include "utilities/exceptions.hpp"
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    32
#include "utilities/macros.hpp"
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    33
26304
a28e6335ce60 8048150: Allow easy configurations for large CDS archives
ccheung
parents: 26135
diff changeset
    34
#define LargeSharedArchiveSize    (300*M)
a28e6335ce60 8048150: Allow easy configurations for large CDS archives
ccheung
parents: 26135
diff changeset
    35
#define HugeSharedArchiveSize     (800*M)
a28e6335ce60 8048150: Allow easy configurations for large CDS archives
ccheung
parents: 26135
diff changeset
    36
#define ReadOnlyRegionPercentage  0.4
a28e6335ce60 8048150: Allow easy configurations for large CDS archives
ccheung
parents: 26135
diff changeset
    37
#define ReadWriteRegionPercentage 0.55
a28e6335ce60 8048150: Allow easy configurations for large CDS archives
ccheung
parents: 26135
diff changeset
    38
#define MiscDataRegionPercentage  0.03
a28e6335ce60 8048150: Allow easy configurations for large CDS archives
ccheung
parents: 26135
diff changeset
    39
#define MiscCodeRegionPercentage  0.02
a28e6335ce60 8048150: Allow easy configurations for large CDS archives
ccheung
parents: 26135
diff changeset
    40
#define LargeThresholdClassCount  5000
a28e6335ce60 8048150: Allow easy configurations for large CDS archives
ccheung
parents: 26135
diff changeset
    41
#define HugeThresholdClassCount   40000
a28e6335ce60 8048150: Allow easy configurations for large CDS archives
ccheung
parents: 26135
diff changeset
    42
a28e6335ce60 8048150: Allow easy configurations for large CDS archives
ccheung
parents: 26135
diff changeset
    43
#define SET_ESTIMATED_SIZE(type, region)                              \
a28e6335ce60 8048150: Allow easy configurations for large CDS archives
ccheung
parents: 26135
diff changeset
    44
  Shared ##region## Size  = FLAG_IS_DEFAULT(Shared ##region## Size) ? \
26408
d6defe172e25 8056175: Change "8048150: Allow easy configurations for large CDS archives" triggers conversion warning with older GCC
ccheung
parents: 26304
diff changeset
    45
    (uintx)(type ## SharedArchiveSize *  region ## RegionPercentage) : Shared ## region ## Size
26304
a28e6335ce60 8048150: Allow easy configurations for large CDS archives
ccheung
parents: 26135
diff changeset
    46
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    47
class FileMapInfo;
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    48
28363
047115468f16 8059510: Compact symbol table layout inside shared archive.
jiangli
parents: 28023
diff changeset
    49
class MetaspaceSharedStats VALUE_OBJ_CLASS_SPEC {
047115468f16 8059510: Compact symbol table layout inside shared archive.
jiangli
parents: 28023
diff changeset
    50
public:
047115468f16 8059510: Compact symbol table layout inside shared archive.
jiangli
parents: 28023
diff changeset
    51
  MetaspaceSharedStats() {
047115468f16 8059510: Compact symbol table layout inside shared archive.
jiangli
parents: 28023
diff changeset
    52
    memset(this, 0, sizeof(*this));
047115468f16 8059510: Compact symbol table layout inside shared archive.
jiangli
parents: 28023
diff changeset
    53
  }
047115468f16 8059510: Compact symbol table layout inside shared archive.
jiangli
parents: 28023
diff changeset
    54
  CompactHashtableStats symbol;
047115468f16 8059510: Compact symbol table layout inside shared archive.
jiangli
parents: 28023
diff changeset
    55
};
047115468f16 8059510: Compact symbol table layout inside shared archive.
jiangli
parents: 28023
diff changeset
    56
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    57
// Class Data Sharing Support
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    58
class MetaspaceShared : AllStatic {
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    59
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    60
  // CDS support
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    61
  static ReservedSpace* _shared_rs;
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    62
  static int _max_alignment;
28363
047115468f16 8059510: Compact symbol table layout inside shared archive.
jiangli
parents: 28023
diff changeset
    63
  static MetaspaceSharedStats _stats;
26135
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 13975
diff changeset
    64
  static bool _link_classes_made_progress;
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 13975
diff changeset
    65
  static bool _check_classes_made_progress;
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 13975
diff changeset
    66
  static bool _has_error_classes;
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 13975
diff changeset
    67
  static bool _archive_loading_failed;
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    68
 public:
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    69
  enum {
27404
33c0f343cd5c 8038268: VM Crashes in MetaspaceShared::generate_vtable_methods while creating CDS archive with limiting SharedMiscCodeSize
ccheung
parents: 26408
diff changeset
    70
    vtbl_list_size         = 17,   // number of entries in the shared space vtable list.
33c0f343cd5c 8038268: VM Crashes in MetaspaceShared::generate_vtable_methods while creating CDS archive with limiting SharedMiscCodeSize
ccheung
parents: 26408
diff changeset
    71
    num_virtuals           = 200,  // maximum number of virtual functions
33c0f343cd5c 8038268: VM Crashes in MetaspaceShared::generate_vtable_methods while creating CDS archive with limiting SharedMiscCodeSize
ccheung
parents: 26408
diff changeset
    72
                                   // If virtual functions are added to Metadata,
33c0f343cd5c 8038268: VM Crashes in MetaspaceShared::generate_vtable_methods while creating CDS archive with limiting SharedMiscCodeSize
ccheung
parents: 26408
diff changeset
    73
                                   // this number needs to be increased.  Also,
33c0f343cd5c 8038268: VM Crashes in MetaspaceShared::generate_vtable_methods while creating CDS archive with limiting SharedMiscCodeSize
ccheung
parents: 26408
diff changeset
    74
                                   // SharedMiscCodeSize will need to be increased.
33c0f343cd5c 8038268: VM Crashes in MetaspaceShared::generate_vtable_methods while creating CDS archive with limiting SharedMiscCodeSize
ccheung
parents: 26408
diff changeset
    75
                                   // The following 2 sizes were based on
33c0f343cd5c 8038268: VM Crashes in MetaspaceShared::generate_vtable_methods while creating CDS archive with limiting SharedMiscCodeSize
ccheung
parents: 26408
diff changeset
    76
                                   // MetaspaceShared::generate_vtable_methods()
33c0f343cd5c 8038268: VM Crashes in MetaspaceShared::generate_vtable_methods while creating CDS archive with limiting SharedMiscCodeSize
ccheung
parents: 26408
diff changeset
    77
    vtbl_method_size       = 16,   // conservative size of the mov1 and jmp instructions
33c0f343cd5c 8038268: VM Crashes in MetaspaceShared::generate_vtable_methods while creating CDS archive with limiting SharedMiscCodeSize
ccheung
parents: 26408
diff changeset
    78
                                   // for the x64 platform
33c0f343cd5c 8038268: VM Crashes in MetaspaceShared::generate_vtable_methods while creating CDS archive with limiting SharedMiscCodeSize
ccheung
parents: 26408
diff changeset
    79
    vtbl_common_code_size  = (1*K) // conservative size of the "common_code" for the x64 platform
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    80
  };
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    81
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    82
  enum {
28018
abc067cd68fd 8065050: vm crashes during CDS dump when very small SharedMiscDataSize is specified
ccheung
parents: 27404
diff changeset
    83
    min_ro_size = NOT_LP64(8*M) LP64_ONLY(9*M), // minimum ro and rw regions sizes based on dumping
abc067cd68fd 8065050: vm crashes during CDS dump when very small SharedMiscDataSize is specified
ccheung
parents: 27404
diff changeset
    84
    min_rw_size = NOT_LP64(7*M) LP64_ONLY(12*M) // of a shared archive using the default classlist
abc067cd68fd 8065050: vm crashes during CDS dump when very small SharedMiscDataSize is specified
ccheung
parents: 27404
diff changeset
    85
  };
abc067cd68fd 8065050: vm crashes during CDS dump when very small SharedMiscDataSize is specified
ccheung
parents: 27404
diff changeset
    86
abc067cd68fd 8065050: vm crashes during CDS dump when very small SharedMiscDataSize is specified
ccheung
parents: 27404
diff changeset
    87
  enum {
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    88
    ro = 0,  // read-only shared space in the heap
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    89
    rw = 1,  // read-write shared space in the heap
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    90
    md = 2,  // miscellaneous data for initializing tables, etc.
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    91
    mc = 3,  // miscellaneous code - vtable replacement.
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    92
    n_regions = 4
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    93
  };
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
    94
13975
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 13728
diff changeset
    95
  // Accessor functions to save shared space created for metadata, which has
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 13728
diff changeset
    96
  // extra space allocated at the end for miscellaneous data and code.
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 13728
diff changeset
    97
  static void set_max_alignment(int alignment) {
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 13728
diff changeset
    98
    CDS_ONLY(_max_alignment = alignment);
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 13728
diff changeset
    99
  }
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 13728
diff changeset
   100
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 13728
diff changeset
   101
  static int max_alignment() {
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 13728
diff changeset
   102
    CDS_ONLY(return _max_alignment);
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 13728
diff changeset
   103
    NOT_CDS(return 0);
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 13728
diff changeset
   104
  }
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
   105
26135
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 13975
diff changeset
   106
  static void prepare_for_dumping() NOT_CDS_RETURN;
13975
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 13728
diff changeset
   107
  static void preload_and_dump(TRAPS) NOT_CDS_RETURN;
26135
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 13975
diff changeset
   108
  static int preload_and_dump(const char * class_list_path,
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 13975
diff changeset
   109
                              GrowableArray<Klass*>* class_promote_order,
27677
b1997f2f1b56 8062808: Turn on the -Wreturn-type warning
stefank
parents: 27404
diff changeset
   110
                              TRAPS) NOT_CDS_RETURN_(0);
13975
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 13728
diff changeset
   111
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 13728
diff changeset
   112
  static ReservedSpace* shared_rs() {
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 13728
diff changeset
   113
    CDS_ONLY(return _shared_rs);
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 13728
diff changeset
   114
    NOT_CDS(return NULL);
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 13728
diff changeset
   115
  }
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
   116
13975
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 13728
diff changeset
   117
  static void set_shared_rs(ReservedSpace* rs) {
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 13728
diff changeset
   118
    CDS_ONLY(_shared_rs = rs;)
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 13728
diff changeset
   119
  }
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 13728
diff changeset
   120
26135
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 13975
diff changeset
   121
  static void set_archive_loading_failed() {
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 13975
diff changeset
   122
    _archive_loading_failed = true;
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 13975
diff changeset
   123
  }
13975
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 13728
diff changeset
   124
  static bool map_shared_spaces(FileMapInfo* mapinfo) NOT_CDS_RETURN_(false);
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 13728
diff changeset
   125
  static void initialize_shared_spaces() NOT_CDS_RETURN;
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
   126
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
   127
  // Return true if given address is in the mapped shared space.
13975
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 13728
diff changeset
   128
  static bool is_in_shared_space(const void* p) NOT_CDS_RETURN_(false);
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
   129
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
   130
  static void generate_vtable_methods(void** vtbl_list,
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
   131
                                      void** vtable,
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
   132
                                      char** md_top, char* md_end,
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
   133
                                      char** mc_top, char* mc_end);
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
   134
  static void serialize(SerializeClosure* sc);
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
   135
28363
047115468f16 8059510: Compact symbol table layout inside shared archive.
jiangli
parents: 28023
diff changeset
   136
  static MetaspaceSharedStats* stats() {
047115468f16 8059510: Compact symbol table layout inside shared archive.
jiangli
parents: 28023
diff changeset
   137
    return &_stats;
047115468f16 8059510: Compact symbol table layout inside shared archive.
jiangli
parents: 28023
diff changeset
   138
  }
047115468f16 8059510: Compact symbol table layout inside shared archive.
jiangli
parents: 28023
diff changeset
   139
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
   140
  // JVM/TI RedefineClasses() support:
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
   141
  // Remap the shared readonly space to shared readwrite, private if
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
   142
  // sharing is enabled. Simply returns true if sharing is not enabled
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
   143
  // or if the remapping has already been done by a prior call.
13975
2f7431485cfa 7189254: Change makefiles for more flexibility to override defaults
jprovino
parents: 13728
diff changeset
   144
  static bool remap_shared_readonly_as_readwrite() NOT_CDS_RETURN_(true);
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
   145
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
   146
  static void print_shared_spaces();
26135
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 13975
diff changeset
   147
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 13975
diff changeset
   148
  static bool try_link_class(InstanceKlass* ik, TRAPS);
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 13975
diff changeset
   149
  static void link_one_shared_class(Klass* obj, TRAPS);
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 13975
diff changeset
   150
  static void check_one_shared_class(Klass* obj);
82b516c550f7 8046070: Class Data Sharing clean up and refactoring
iklam
parents: 13975
diff changeset
   151
  static void link_and_cleanup_shared_classes(TRAPS);
26304
a28e6335ce60 8048150: Allow easy configurations for large CDS archives
ccheung
parents: 26135
diff changeset
   152
a28e6335ce60 8048150: Allow easy configurations for large CDS archives
ccheung
parents: 26135
diff changeset
   153
  static int count_class(const char* classlist_file);
a28e6335ce60 8048150: Allow easy configurations for large CDS archives
ccheung
parents: 26135
diff changeset
   154
  static void estimate_regions_size() NOT_CDS_RETURN;
13728
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
   155
};
882756847a04 6964458: Reimplement class meta-data storage to use native memory
coleenp
parents:
diff changeset
   156
#endif // SHARE_VM_MEMORY_METASPACE_SHARED_HPP