< prev index next >

src/hotspot/share/cds/heapShared.hpp

Print this page

  8  *
  9  * This code is distributed in the hope that it will be useful, but WITHOUT
 10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 12  * version 2 for more details (a copy is included in the LICENSE file that
 13  * accompanied this code).
 14  *
 15  * You should have received a copy of the GNU General Public License version
 16  * 2 along with this work; if not, write to the Free Software Foundation,
 17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 18  *
 19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 20  * or visit www.oracle.com if you need additional information or have any
 21  * questions.
 22  *
 23  */
 24 
 25 #ifndef SHARE_CDS_HEAPSHARED_HPP
 26 #define SHARE_CDS_HEAPSHARED_HPP
 27 

 28 #include "cds/dumpTimeClassInfo.hpp"
 29 #include "cds/metaspaceShared.hpp"
 30 #include "classfile/compactHashtable.hpp"
 31 #include "classfile/javaClasses.hpp"
 32 #include "gc/shared/gc_globals.hpp"
 33 #include "memory/allocation.hpp"
 34 #include "memory/allStatic.hpp"
 35 #include "oops/compressedOops.hpp"
 36 #include "oops/oop.hpp"
 37 #include "oops/oopHandle.hpp"
 38 #include "oops/oopsHierarchy.hpp"
 39 #include "utilities/growableArray.hpp"
 40 #include "utilities/resourceHash.hpp"
 41 
 42 #if INCLUDE_CDS_JAVA_HEAP
 43 class DumpedInternedStrings;
 44 class FileMapInfo;
 45 class KlassSubGraphInfo;
 46 class MetaspaceObjToOopHandleTable;
 47 class ResourceBitMap;

253 
254   static KlassSubGraphInfo* init_subgraph_info(Klass *k, bool is_full_module_graph);
255   static KlassSubGraphInfo* get_subgraph_info(Klass *k);
256 
257   static void init_subgraph_entry_fields(TRAPS) NOT_CDS_JAVA_HEAP_RETURN;
258   static void init_subgraph_entry_fields(ArchivableStaticFieldInfo fields[], TRAPS);
259 
260   // UseCompressedOops only: Used by decode_from_archive
261   static address _narrow_oop_base;
262   static int     _narrow_oop_shift;
263 
264   // !UseCompressedOops only: used to relocate pointers to the archived objects
265   static ptrdiff_t _runtime_delta;
266 
267   typedef ResizeableResourceHashtable<oop, bool,
268       AnyObj::C_HEAP,
269       mtClassShared,
270       HeapShared::oop_hash> SeenObjectsTable;
271 
272   static SeenObjectsTable *_seen_objects_table;
273 
274   // The "special subgraph" contains all the archived objects that are reachable
275   // from the following roots:
276   //    - interned strings
277   //    - Klass::java_mirror() -- including aot-initialized mirrors such as those of Enum klasses.
278   //    - ConstantPool::resolved_references()
279   //    - Universe::<xxx>_exception_instance()
280   static KlassSubGraphInfo* _dump_time_special_subgraph;              // for collecting info during dump time
281   static ArchivedKlassSubGraphInfoRecord* _run_time_special_subgraph; // for initializing classes during run time.
282 
283   static GrowableArrayCHeap<oop, mtClassShared>* _pending_roots;
284   static GrowableArrayCHeap<OopHandle, mtClassShared>* _root_segments;

285   static int _root_segment_max_size_elems;
286   static OopHandle _scratch_basic_type_mirrors[T_VOID+1];
287   static MetaspaceObjToOopHandleTable* _scratch_objects_table;
288 
289   static void init_seen_objects_table() {
290     assert(_seen_objects_table == nullptr, "must be");
291     _seen_objects_table = new (mtClass)SeenObjectsTable(INITIAL_TABLE_SIZE, MAX_TABLE_SIZE);
292   }
293   static void delete_seen_objects_table() {
294     assert(_seen_objects_table != nullptr, "must be");
295     delete _seen_objects_table;
296     _seen_objects_table = nullptr;
297   }
298 


299   // Statistics (for one round of start_recording_subgraph ... done_recording_subgraph)
300   static int _num_new_walked_objs;
301   static int _num_new_archived_objs;
302   static int _num_old_recorded_klasses;
303 
304   // Statistics (for all archived subgraphs)
305   static int _num_total_subgraph_recordings;
306   static int _num_total_walked_objs;
307   static int _num_total_archived_objs;
308   static int _num_total_recorded_klasses;
309   static int _num_total_verifications;
310 
311   static void start_recording_subgraph(InstanceKlass *k, const char* klass_name,
312                                        bool is_full_module_graph);
313   static void done_recording_subgraph(InstanceKlass *k, const char* klass_name);
314 
315   static bool has_been_seen_during_subgraph_recording(oop obj);
316   static void set_has_been_seen_during_subgraph_recording(oop obj);
317   static bool archive_object(oop obj, oop referrer, KlassSubGraphInfo* subgraph_info);
318 

348     oop _referrer;
349     int _level;
350 
351   public:
352     PendingOop() : _obj(nullptr), _referrer(nullptr), _level(-1) {}
353     PendingOop(oop obj, oop referrer, int level) : _obj(obj), _referrer(referrer), _level(level) {}
354 
355     oop obj()      const { return _obj; }
356     oop referrer() const { return _referrer; }
357     int level()    const { return _level; }
358   };
359 
360   class ReferentPusher;
361   using PendingOopStack = GrowableArrayCHeap<PendingOop, mtClassShared>;
362 
363   static PendingOop _object_being_archived;
364   static bool walk_one_object(PendingOopStack* stack, int level, KlassSubGraphInfo* subgraph_info,
365                               oop orig_obj, oop referrer);
366 
367  public:

368   static void reset_archived_object_states(TRAPS);
369   static void create_archived_object_cache() {
370     _archived_object_cache =
371       new (mtClass)ArchivedObjectCache(INITIAL_TABLE_SIZE, MAX_TABLE_SIZE);
372   }
373   static void destroy_archived_object_cache() {
374     delete _archived_object_cache;
375     _archived_object_cache = nullptr;
376   }
377   static ArchivedObjectCache* archived_object_cache() {
378     return _archived_object_cache;
379   }
380 
381   static int archive_exception_instance(oop exception);
382 
383   static bool archive_reachable_objects_from(int level,
384                                              KlassSubGraphInfo* subgraph_info,
385                                              oop orig_obj);
386 
387   static void add_to_dumped_interned_strings(oop string);
388   static bool is_dumped_interned_string(oop o);
389 


390   // Scratch objects for archiving Klass::java_mirror()
391   static void set_scratch_java_mirror(Klass* k, oop mirror);
392   static void remove_scratch_objects(Klass* k);
393   static void get_pointer_info(oop src_obj, bool& has_oop_pointers, bool& has_native_pointers);
394   static void set_has_native_pointers(oop src_obj);
395 
396   // We use the HeapShared::roots() array to make sure that objects stored in the
397   // archived heap region are not prematurely collected. These roots include:
398   //
399   //    - mirrors of classes that have not yet been loaded.
400   //    - ConstantPool::resolved_references() of classes that have not yet been loaded.
401   //    - ArchivedKlassSubGraphInfoRecords that have not been initialized
402   //    - java.lang.Module objects that have not yet been added to the module graph
403   //
404   // When a mirror M becomes referenced by a newly loaded class K, M will be removed
405   // from HeapShared::roots() via clear_root(), and K will be responsible for
406   // keeping M alive.
407   //
408   // Other types of roots are also cleared similarly when they become referenced.
409 
410   // Dump-time only. Returns the index of the root, which can be used at run time to read
411   // the root using get_root(index, ...).
412   static int append_root(oop obj);
413   static GrowableArrayCHeap<oop, mtClassShared>* pending_roots() { return _pending_roots; }
414 
415   // Dump-time and runtime
416   static objArrayOop root_segment(int segment_idx);
417   static oop get_root(int index, bool clear=false);
418 
419   // Run-time only
420   static void clear_root(int index);
421 
422   static void get_segment_indexes(int index, int& segment_index, int& internal_index);
423 
424   static void setup_test_class(const char* test_class_name) PRODUCT_RETURN;
425 #endif // INCLUDE_CDS_JAVA_HEAP
426 
427  public:

428   static void write_heap(ArchiveHeapInfo* heap_info) NOT_CDS_JAVA_HEAP_RETURN;
429   static objArrayOop scratch_resolved_references(ConstantPool* src);
430   static void add_scratch_resolved_references(ConstantPool* src, objArrayOop dest) NOT_CDS_JAVA_HEAP_RETURN;
431   static void init_dumping() NOT_CDS_JAVA_HEAP_RETURN;
432   static void init_scratch_objects_for_basic_type_mirrors(TRAPS) NOT_CDS_JAVA_HEAP_RETURN;
433   static void init_box_classes(TRAPS) NOT_CDS_JAVA_HEAP_RETURN;
434   static bool is_heap_region(int idx) {
435     CDS_JAVA_HEAP_ONLY(return (idx == MetaspaceShared::hp);)
436     NOT_CDS_JAVA_HEAP_RETURN_(false);
437   }
438 
439   static void resolve_classes(JavaThread* current) NOT_CDS_JAVA_HEAP_RETURN;
440   static void initialize_from_archived_subgraph(JavaThread* current, Klass* k) NOT_CDS_JAVA_HEAP_RETURN;
441 
442   static void init_for_dumping(TRAPS) NOT_CDS_JAVA_HEAP_RETURN;
443   static void write_subgraph_info_table() NOT_CDS_JAVA_HEAP_RETURN;
444   static void add_root_segment(objArrayOop segment_oop) NOT_CDS_JAVA_HEAP_RETURN;
445   static void init_root_segment_sizes(int max_size_elems) NOT_CDS_JAVA_HEAP_RETURN;
446   static void serialize_tables(SerializeClosure* soc) NOT_CDS_JAVA_HEAP_RETURN;
447 
448 #ifndef PRODUCT
449   static bool is_a_test_class_in_unnamed_module(Klass* ik) NOT_CDS_JAVA_HEAP_RETURN_(false);
450   static void initialize_test_class_from_archive(TRAPS) NOT_CDS_JAVA_HEAP_RETURN;
451 #endif
452 









453   static void initialize_java_lang_invoke(TRAPS) NOT_CDS_JAVA_HEAP_RETURN;
454   static void init_classes_for_special_subgraph(Handle loader, TRAPS) NOT_CDS_JAVA_HEAP_RETURN;
455 
456   static bool is_lambda_form_klass(InstanceKlass* ik) NOT_CDS_JAVA_HEAP_RETURN_(false);
457   static bool is_lambda_proxy_klass(InstanceKlass* ik) NOT_CDS_JAVA_HEAP_RETURN_(false);
458   static bool is_string_concat_klass(InstanceKlass* ik) NOT_CDS_JAVA_HEAP_RETURN_(false);
459   static bool is_archivable_hidden_klass(InstanceKlass* ik) NOT_CDS_JAVA_HEAP_RETURN_(false);
460 
461   // Used by AOTArtifactFinder
462   static void start_scanning_for_oops();
463   static void end_scanning_for_oops();
464   static void scan_java_class(Klass* k);
465   static void scan_java_mirror(oop orig_mirror);
466   static void copy_and_rescan_aot_inited_mirror(InstanceKlass* ik);
467 };
468 








469 #if INCLUDE_CDS_JAVA_HEAP
470 class DumpedInternedStrings :
471   public ResizeableResourceHashtable<oop, bool,
472                            AnyObj::C_HEAP,
473                            mtClassShared,
474                            HeapShared::string_oop_hash>
475 {
476 public:
477   DumpedInternedStrings(unsigned size, unsigned max_size) :
478     ResizeableResourceHashtable<oop, bool,
479                                 AnyObj::C_HEAP,
480                                 mtClassShared,
481                                 HeapShared::string_oop_hash>(size, max_size) {}
482 };
483 #endif
484 
485 #endif // SHARE_CDS_HEAPSHARED_HPP

  8  *
  9  * This code is distributed in the hope that it will be useful, but WITHOUT
 10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 12  * version 2 for more details (a copy is included in the LICENSE file that
 13  * accompanied this code).
 14  *
 15  * You should have received a copy of the GNU General Public License version
 16  * 2 along with this work; if not, write to the Free Software Foundation,
 17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 18  *
 19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 20  * or visit www.oracle.com if you need additional information or have any
 21  * questions.
 22  *
 23  */
 24 
 25 #ifndef SHARE_CDS_HEAPSHARED_HPP
 26 #define SHARE_CDS_HEAPSHARED_HPP
 27 
 28 #include "cds/cds_globals.hpp"
 29 #include "cds/dumpTimeClassInfo.hpp"
 30 #include "cds/metaspaceShared.hpp"
 31 #include "classfile/compactHashtable.hpp"
 32 #include "classfile/javaClasses.hpp"
 33 #include "gc/shared/gc_globals.hpp"
 34 #include "memory/allocation.hpp"
 35 #include "memory/allStatic.hpp"
 36 #include "oops/compressedOops.hpp"
 37 #include "oops/oop.hpp"
 38 #include "oops/oopHandle.hpp"
 39 #include "oops/oopsHierarchy.hpp"
 40 #include "utilities/growableArray.hpp"
 41 #include "utilities/resourceHash.hpp"
 42 
 43 #if INCLUDE_CDS_JAVA_HEAP
 44 class DumpedInternedStrings;
 45 class FileMapInfo;
 46 class KlassSubGraphInfo;
 47 class MetaspaceObjToOopHandleTable;
 48 class ResourceBitMap;

254 
255   static KlassSubGraphInfo* init_subgraph_info(Klass *k, bool is_full_module_graph);
256   static KlassSubGraphInfo* get_subgraph_info(Klass *k);
257 
258   static void init_subgraph_entry_fields(TRAPS) NOT_CDS_JAVA_HEAP_RETURN;
259   static void init_subgraph_entry_fields(ArchivableStaticFieldInfo fields[], TRAPS);
260 
261   // UseCompressedOops only: Used by decode_from_archive
262   static address _narrow_oop_base;
263   static int     _narrow_oop_shift;
264 
265   // !UseCompressedOops only: used to relocate pointers to the archived objects
266   static ptrdiff_t _runtime_delta;
267 
268   typedef ResizeableResourceHashtable<oop, bool,
269       AnyObj::C_HEAP,
270       mtClassShared,
271       HeapShared::oop_hash> SeenObjectsTable;
272 
273   static SeenObjectsTable *_seen_objects_table;

274   // The "special subgraph" contains all the archived objects that are reachable
275   // from the following roots:
276   //    - interned strings
277   //    - Klass::java_mirror() -- including aot-initialized mirrors such as those of Enum klasses.
278   //    - ConstantPool::resolved_references()
279   //    - Universe::<xxx>_exception_instance()
280   static KlassSubGraphInfo* _dump_time_special_subgraph;              // for collecting info during dump time
281   static ArchivedKlassSubGraphInfoRecord* _run_time_special_subgraph; // for initializing classes during run time.
282 
283   static GrowableArrayCHeap<OopHandle, mtClassShared>* _pending_roots;
284   static GrowableArrayCHeap<OopHandle, mtClassShared>* _root_segments;
285   static GrowableArrayCHeap<const char*, mtClassShared>* _context; // for debugging unarchivable objects
286   static int _root_segment_max_size_elems;
287   static OopHandle _scratch_basic_type_mirrors[T_VOID+1];
288   static MetaspaceObjToOopHandleTable* _scratch_objects_table;
289 
290   static void init_seen_objects_table() {
291     assert(_seen_objects_table == nullptr, "must be");
292     _seen_objects_table = new (mtClass)SeenObjectsTable(INITIAL_TABLE_SIZE, MAX_TABLE_SIZE);
293   }
294   static void delete_seen_objects_table() {
295     assert(_seen_objects_table != nullptr, "must be");
296     delete _seen_objects_table;
297     _seen_objects_table = nullptr;
298   }
299 
300   class ContextMark;
301 
302   // Statistics (for one round of start_recording_subgraph ... done_recording_subgraph)
303   static int _num_new_walked_objs;
304   static int _num_new_archived_objs;
305   static int _num_old_recorded_klasses;
306 
307   // Statistics (for all archived subgraphs)
308   static int _num_total_subgraph_recordings;
309   static int _num_total_walked_objs;
310   static int _num_total_archived_objs;
311   static int _num_total_recorded_klasses;
312   static int _num_total_verifications;
313 
314   static void start_recording_subgraph(InstanceKlass *k, const char* klass_name,
315                                        bool is_full_module_graph);
316   static void done_recording_subgraph(InstanceKlass *k, const char* klass_name);
317 
318   static bool has_been_seen_during_subgraph_recording(oop obj);
319   static void set_has_been_seen_during_subgraph_recording(oop obj);
320   static bool archive_object(oop obj, oop referrer, KlassSubGraphInfo* subgraph_info);
321 

351     oop _referrer;
352     int _level;
353 
354   public:
355     PendingOop() : _obj(nullptr), _referrer(nullptr), _level(-1) {}
356     PendingOop(oop obj, oop referrer, int level) : _obj(obj), _referrer(referrer), _level(level) {}
357 
358     oop obj()      const { return _obj; }
359     oop referrer() const { return _referrer; }
360     int level()    const { return _level; }
361   };
362 
363   class ReferentPusher;
364   using PendingOopStack = GrowableArrayCHeap<PendingOop, mtClassShared>;
365 
366   static PendingOop _object_being_archived;
367   static bool walk_one_object(PendingOopStack* stack, int level, KlassSubGraphInfo* subgraph_info,
368                               oop orig_obj, oop referrer);
369 
370  public:
371   static void exit_on_error();
372   static void reset_archived_object_states(TRAPS);
373   static void create_archived_object_cache() {
374     _archived_object_cache =
375       new (mtClass)ArchivedObjectCache(INITIAL_TABLE_SIZE, MAX_TABLE_SIZE);
376   }
377   static void destroy_archived_object_cache() {
378     delete _archived_object_cache;
379     _archived_object_cache = nullptr;
380   }
381   static ArchivedObjectCache* archived_object_cache() {
382     return _archived_object_cache;
383   }
384 
385   static int archive_exception_instance(oop exception);
386 
387   static bool archive_reachable_objects_from(int level,
388                                              KlassSubGraphInfo* subgraph_info,
389                                              oop orig_obj);
390 
391   static void add_to_dumped_interned_strings(oop string);
392   static bool is_dumped_interned_string(oop o);
393 
394   static void track_scratch_object(oop orig_obj, oop scratch_obj);
395 
396   // Scratch objects for archiving Klass::java_mirror()
397   static void set_scratch_java_mirror(Klass* k, oop mirror);
398   static void remove_scratch_objects(Klass* k);
399   static void get_pointer_info(oop src_obj, bool& has_oop_pointers, bool& has_native_pointers);
400   static void set_has_native_pointers(oop src_obj);
401 
402   // We use the HeapShared::roots() array to make sure that objects stored in the
403   // archived heap region are not prematurely collected. These roots include:
404   //
405   //    - mirrors of classes that have not yet been loaded.
406   //    - ConstantPool::resolved_references() of classes that have not yet been loaded.
407   //    - ArchivedKlassSubGraphInfoRecords that have not been initialized
408   //    - java.lang.Module objects that have not yet been added to the module graph
409   //
410   // When a mirror M becomes referenced by a newly loaded class K, M will be removed
411   // from HeapShared::roots() via clear_root(), and K will be responsible for
412   // keeping M alive.
413   //
414   // Other types of roots are also cleared similarly when they become referenced.
415 
416   // Dump-time only. Returns the index of the root, which can be used at run time to read
417   // the root using get_root(index, ...).
418   static int append_root(oop obj);
419   static GrowableArrayCHeap<OopHandle, mtClassShared>* pending_roots() { return _pending_roots; }
420 
421   // Dump-time and runtime
422   static objArrayOop root_segment(int segment_idx);
423   static oop get_root(int index, bool clear=false);
424 
425   // Run-time only
426   static void clear_root(int index);

427   static void get_segment_indexes(int index, int& segment_index, int& internal_index);

428   static void setup_test_class(const char* test_class_name) PRODUCT_RETURN;
429 #endif // INCLUDE_CDS_JAVA_HEAP
430 
431  public:
432   static oop orig_to_scratch_object(oop orig_obj);
433   static void write_heap(ArchiveHeapInfo* heap_info) NOT_CDS_JAVA_HEAP_RETURN;
434   static objArrayOop scratch_resolved_references(ConstantPool* src);
435   static void add_scratch_resolved_references(ConstantPool* src, objArrayOop dest) NOT_CDS_JAVA_HEAP_RETURN;
436   static void init_dumping() NOT_CDS_JAVA_HEAP_RETURN;
437   static void init_scratch_objects_for_basic_type_mirrors(TRAPS) NOT_CDS_JAVA_HEAP_RETURN;
438   static void init_box_classes(TRAPS) NOT_CDS_JAVA_HEAP_RETURN;
439   static bool is_heap_region(int idx) {
440     CDS_JAVA_HEAP_ONLY(return (idx == MetaspaceShared::hp);)
441     NOT_CDS_JAVA_HEAP_RETURN_(false);
442   }
443 
444   static void resolve_classes(JavaThread* current) NOT_CDS_JAVA_HEAP_RETURN;
445   static void initialize_from_archived_subgraph(JavaThread* current, Klass* k) NOT_CDS_JAVA_HEAP_RETURN;
446 
447   static void init_for_dumping(TRAPS) NOT_CDS_JAVA_HEAP_RETURN;
448   static void write_subgraph_info_table() NOT_CDS_JAVA_HEAP_RETURN;
449   static void add_root_segment(objArrayOop segment_oop) NOT_CDS_JAVA_HEAP_RETURN;
450   static void init_root_segment_sizes(int max_size_elems) NOT_CDS_JAVA_HEAP_RETURN;
451   static void serialize_tables(SerializeClosure* soc) NOT_CDS_JAVA_HEAP_RETURN;
452 
453 #ifndef PRODUCT
454   static bool is_a_test_class_in_unnamed_module(Klass* ik) NOT_CDS_JAVA_HEAP_RETURN_(false);
455   static void initialize_test_class_from_archive(TRAPS) NOT_CDS_JAVA_HEAP_RETURN;
456 #endif
457 
458   static void add_to_permanent_oop_table(oop obj, int offset);
459 
460   // AOT-compile time only: get a stable index for an archived object.
461   // Returns 0 if obj is not archived.
462   static int get_archived_object_permanent_index(oop obj) NOT_CDS_JAVA_HEAP_RETURN_(-1);
463   // Runtime only: get back the same object for an index returned by
464   // get_archived_object_permanent_index().
465   static oop get_archived_object(int permanent_index) NOT_CDS_JAVA_HEAP_RETURN_(nullptr);
466 
467   static void initialize_java_lang_invoke(TRAPS) NOT_CDS_JAVA_HEAP_RETURN;
468   static void init_classes_for_special_subgraph(Handle loader, TRAPS) NOT_CDS_JAVA_HEAP_RETURN;
469 
470   static bool is_lambda_form_klass(InstanceKlass* ik) NOT_CDS_JAVA_HEAP_RETURN_(false);
471   static bool is_lambda_proxy_klass(InstanceKlass* ik) NOT_CDS_JAVA_HEAP_RETURN_(false);
472   static bool is_string_concat_klass(InstanceKlass* ik) NOT_CDS_JAVA_HEAP_RETURN_(false);
473   static bool is_archivable_hidden_klass(InstanceKlass* ik) NOT_CDS_JAVA_HEAP_RETURN_(false);
474 
475   // Used by AOTArtifactFinder
476   static void start_scanning_for_oops();
477   static void end_scanning_for_oops();
478   static void scan_java_class(Klass* k);
479   static void scan_java_mirror(oop orig_mirror);
480   static void copy_and_rescan_aot_inited_mirror(InstanceKlass* ik);
481 };
482 
483 class CachedCodeDirectoryInternal {
484   int _permanent_oop_count;
485   int* _permanent_oop_offsets; // offset of each permanent object from the bottom of the archived heap
486 public:
487   void dumptime_init_internal() NOT_CDS_JAVA_HEAP_RETURN;
488   void runtime_init_internal() NOT_CDS_JAVA_HEAP_RETURN;
489 };
490 
491 #if INCLUDE_CDS_JAVA_HEAP
492 class DumpedInternedStrings :
493   public ResizeableResourceHashtable<oop, bool,
494                            AnyObj::C_HEAP,
495                            mtClassShared,
496                            HeapShared::string_oop_hash>
497 {
498 public:
499   DumpedInternedStrings(unsigned size, unsigned max_size) :
500     ResizeableResourceHashtable<oop, bool,
501                                 AnyObj::C_HEAP,
502                                 mtClassShared,
503                                 HeapShared::string_oop_hash>(size, max_size) {}
504 };
505 #endif
506 
507 #endif // SHARE_CDS_HEAPSHARED_HPP
< prev index next >