Skip to content
Permalink
Browse files
8256040: Shenandoah: Allow NULL referent in ShenandoahReferenceProces…
…sor::should_discover()

Reviewed-by: shade
  • Loading branch information
rkennke committed Nov 10, 2020
1 parent 01567b5 commit a38dd53411f896c4c307d2d55727e5d3915819e4
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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));

1 comment on commit a38dd53

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on a38dd53 Nov 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.