Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Varga <vargaz@gmail.com>2016-04-20 21:53:45 +0300
committerZoltan Varga <vargaz@gmail.com>2016-04-20 23:15:25 +0300
commitfeeadb6fa182028687580148396d4c05243fa29a (patch)
tree9c158f25443e38796f415cae8aa8e5639c2d2a17
parent00e174aa8d4308b6beba9fc98811997f0f0f1c73 (diff)
[sgen] Avoid returning NULL from null_link_if (), that means an empty slot, not a handle pointing to null. Fixes #36852.
-rw-r--r--mono/sgen/sgen-gchandles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mono/sgen/sgen-gchandles.c b/mono/sgen/sgen-gchandles.c
index f4b352eac11..b38b0ac7193 100644
--- a/mono/sgen/sgen-gchandles.c
+++ b/mono/sgen/sgen-gchandles.c
@@ -614,7 +614,7 @@ null_link_if (gpointer hidden, GCHandleType handle_type, int max_generation, gpo
return hidden;
if (closure->predicate (obj, closure->data))
- return NULL;
+ return MONO_GC_HANDLE_METADATA_POINTER (sgen_client_default_metadata (), GC_HANDLE_TYPE_IS_WEAK (handle_type));
return hidden;
}