8222843: Print Shenandoah cset map addresses in hs_err

Reviewed-by: rkennke
This commit is contained in:
Aleksey Shipilev 2019-04-24 11:39:56 +02:00
parent 055a822a06
commit 6af2184d4b
2 changed files with 12 additions and 0 deletions

View File

@ -88,6 +88,9 @@ public:
void clear();
private:
jbyte* map_address() const {
return _cset_map;
}
jbyte* biased_map_address() const {
return _biased_cset_map;
}

View File

@ -537,6 +537,15 @@ void ShenandoahHeap::print_on(outputStream* st) const {
p2i(reserved_region().start()),
p2i(reserved_region().end()));
ShenandoahCollectionSet* cset = collection_set();
st->print_cr("Collection set:");
if (cset != NULL) {
st->print_cr(" - map (vanilla): " PTR_FORMAT, p2i(cset->map_address()));
st->print_cr(" - map (biased): " PTR_FORMAT, p2i(cset->biased_map_address()));
} else {
st->print_cr(" (NULL)");
}
st->cr();
MetaspaceUtils::print_on(st);