mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-25 05:45:11 +02:00
8069016: Add BarrierSet downcast support
Add FakeRttiSupport utility and use to provide barrier_set_cast. Reviewed-by: jmasa, sangheki
This commit is contained in:
parent
1426bc9dc1
commit
40d3986051
32 changed files with 289 additions and 131 deletions
|
@ -340,8 +340,8 @@ void decode_env::print_address(address adr) {
|
|||
}
|
||||
|
||||
BarrierSet* bs = Universe::heap()->barrier_set();
|
||||
if (bs->kind() == BarrierSet::CardTableModRef &&
|
||||
adr == (address)((CardTableModRefBS*)(bs))->byte_map_base) {
|
||||
if (bs->is_a(BarrierSet::CardTableModRef) &&
|
||||
adr == (address)(barrier_set_cast<CardTableModRefBS>(bs)->byte_map_base)) {
|
||||
st->print("word_map_base");
|
||||
if (WizardMode) st->print(" " INTPTR_FORMAT, (intptr_t)adr);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue