Index: runtime/vm/object_id_ring.cc |
diff --git a/runtime/vm/object_id_ring.cc b/runtime/vm/object_id_ring.cc |
index 434463b734cdfec29e24da22700b27415feab42c..fd069888cd6b2ea42c99f300b9aaf946180ada88 100644 |
--- a/runtime/vm/object_id_ring.cc |
+++ b/runtime/vm/object_id_ring.cc |
@@ -33,7 +33,8 @@ int32_t ObjectIdRing::GetIdForObject(RawObject* object) { |
RawObject* ObjectIdRing::GetObjectForId(int32_t id) { |
int32_t index = IndexOfId(id); |
if (index == kInvalidId) { |
- return Object::null(); |
+ // Return sentinel to allow caller to distinguish expired ids. |
+ return Object::sentinel().raw(); |
} |
ASSERT(index >= 0); |
ASSERT(index < capacity_); |