8205559: Remove IN_CONCURRENT_ROOT Access decorator

Removed decorator and made all NativeAccess use barriers.

Reviewed-by: pliden, stefank
This commit is contained in:
Kim Barrett 2018-06-26 16:59:38 -04:00
parent ed24b806f1
commit 8a2170dad7
18 changed files with 54 additions and 80 deletions

View file

@ -832,9 +832,7 @@ void ClassLoaderData::remove_handle(OopHandle h) {
oop* ptr = h.ptr_raw();
if (ptr != NULL) {
assert(_handles.owner_of(ptr), "Got unexpected handle " PTR_FORMAT, p2i(ptr));
// This root is not walked in safepoints, and hence requires an appropriate
// decorator that e.g. maintains the SATB invariant in SATB collectors.
NativeAccess<IN_CONCURRENT_ROOT>::oop_store(ptr, oop(NULL));
NativeAccess<>::oop_store(ptr, oop(NULL));
}
}