Skip to content
Permalink
Browse files
8269066: assert(ZAddress::is_marked(addr)) failed: Should be marked
Reviewed-by: eosterlund, stefank, kbarrett, tschatzl
  • Loading branch information
pliden committed Jun 23, 2021
1 parent 1323be5 commit 8128ca1381a058cb5ed3775bafa2bc681f8fe2c1
Showing 1 changed file with 13 additions and 3 deletions.
@@ -194,11 +194,21 @@ int ZBarrierSetC2::estimate_stub_size() const {

static void set_barrier_data(C2Access& access) {
if (ZBarrierSet::barrier_needed(access.decorators(), access.type())) {
if (access.decorators() & ON_WEAK_OOP_REF) {
access.set_barrier_data(ZLoadBarrierWeak);
uint8_t barrier_data = 0;

if (access.decorators() & ON_PHANTOM_OOP_REF) {
barrier_data |= ZLoadBarrierPhantom;
} else if (access.decorators() & ON_WEAK_OOP_REF) {
barrier_data |= ZLoadBarrierWeak;
} else {
access.set_barrier_data(ZLoadBarrierStrong);
barrier_data |= ZLoadBarrierStrong;
}

if (access.decorators() & AS_NO_KEEPALIVE) {
barrier_data |= ZLoadBarrierNoKeepalive;
}

access.set_barrier_data(barrier_data);
}
}

0 comments on commit 8128ca1

Please sign in to comment.