Skip to content

Commit a38dd53

Browse files
committedNov 10, 2020
8256040: Shenandoah: Allow NULL referent in ShenandoahReferenceProcessor::should_discover()
Reviewed-by: shade
1 parent 01567b5 commit a38dd53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/hotspot/share/gc/shenandoah/shenandoahReferenceProcessor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ template <typename T>
265265
bool ShenandoahReferenceProcessor::should_discover(oop reference, ReferenceType type) const {
266266
T* referent_addr = (T*) java_lang_ref_Reference::referent_addr_raw(reference);
267267
T heap_oop = RawAccess<>::oop_load(referent_addr);
268-
oop referent = CompressedOops::decode_not_null(heap_oop);
268+
oop referent = CompressedOops::decode(heap_oop);
269269

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

0 commit comments

Comments
 (0)
Please sign in to comment.