Skip to content

Commit

Permalink
8256040: Shenandoah: Allow NULL referent in ShenandoahReferenceProces…
Browse files Browse the repository at this point in the history
…sor::should_discover()

Reviewed-by: shade
  • Loading branch information
rkennke committed Nov 10, 2020
1 parent 01567b5 commit a38dd53
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -265,7 +265,7 @@ template <typename T>
bool ShenandoahReferenceProcessor::should_discover(oop reference, ReferenceType type) const {
T* referent_addr = (T*) java_lang_ref_Reference::referent_addr_raw(reference);
T heap_oop = RawAccess<>::oop_load(referent_addr);
oop referent = CompressedOops::decode_not_null(heap_oop);
oop referent = CompressedOops::decode(heap_oop);

if (is_inactive<T>(reference, referent, type)) {
log_trace(gc,ref)("Reference inactive: " PTR_FORMAT, p2i(reference));
Expand Down

0 comments on commit a38dd53

Please sign in to comment.