Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8263559: Add missing initializers to VM_PopulateDumpSharedSpace
Reviewed-by: kbarrett, iklam, coleenp
  • Loading branch information
tstuefe committed Mar 16, 2021
1 parent e03a594 commit ba35193c1abec21c9163ef431ebe1998edc77312
Showing with 6 additions and 7 deletions.
  1. +6 −7 src/hotspot/share/memory/metaspaceShared.cpp
@@ -386,9 +386,12 @@ class VM_PopulateDumpSharedSpace : public VM_GC_Operation {

public:

VM_PopulateDumpSharedSpace() : VM_GC_Operation(0, /* total collections, ignored */
GCCause::_archive_time_gc)
{ }
VM_PopulateDumpSharedSpace() :
VM_GC_Operation(0 /* total collections, ignored */, GCCause::_archive_time_gc),
_closed_archive_heap_regions(NULL),
_open_archive_heap_regions(NULL),
_closed_archive_heap_oopmaps(NULL),
_open_archive_heap_oopmaps(NULL) {}

bool skip_operation() const { return false; }

@@ -432,8 +435,6 @@ char* VM_PopulateDumpSharedSpace::dump_read_only_tables() {
MetaspaceShared::serialize(&wc);

// Write the bitmaps for patching the archive heap regions
_closed_archive_heap_oopmaps = NULL;
_open_archive_heap_oopmaps = NULL;
dump_archive_heap_oopmaps();

return start;
@@ -479,8 +480,6 @@ void VM_PopulateDumpSharedSpace::doit() {
builder.relocate_metaspaceobj_embedded_pointers();

// Dump supported java heap objects
_closed_archive_heap_regions = NULL;
_open_archive_heap_regions = NULL;
dump_java_heap_objects(builder.klasses());

builder.relocate_roots();

0 comments on commit ba35193

Please sign in to comment.