Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5227)

Unified Diff: runtime/vm/thread.h

Issue 2640573003: Resolution for issue #5092: Unit test handle checks consider dangling handles to be valid. (Closed)
Patch Set: Removed Dart API entry for IsValid. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/thread.h
diff --git a/runtime/vm/thread.h b/runtime/vm/thread.h
index 57a7c1f69405478a110f470e7af729d1d31e5dbc..76a72adaa6f7a2e6904edbc344d189ce90db277b 100644
--- a/runtime/vm/thread.h
+++ b/runtime/vm/thread.h
@@ -653,9 +653,12 @@ class Thread : public BaseThread {
// Visit all object pointers.
void VisitObjectPointers(ObjectPointerVisitor* visitor, bool validate_frames);
+ bool IsValidHandle(Dart_Handle object) const;
bool IsValidLocalHandle(Dart_Handle object) const;
intptr_t CountLocalHandles() const;
+ bool IsValidZoneHandle(Dart_Handle object) const;
intptr_t CountZoneHandles() const;
+ bool IsValidScopedHandle(Dart_Handle object) const;
intptr_t CountScopedHandles() const;
int ZoneSizeInBytes() const;
void UnwindScopes(uword stack_marker);

Powered by Google App Engine
This is Rietveld 408576698