diff options
Diffstat (limited to 'runtime/indirect_reference_table.h')
-rw-r--r-- | runtime/indirect_reference_table.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime/indirect_reference_table.h b/runtime/indirect_reference_table.h index 25b0281767..0072184f62 100644 --- a/runtime/indirect_reference_table.h +++ b/runtime/indirect_reference_table.h @@ -258,10 +258,15 @@ bool inline operator!=(const IrtIterator& lhs, const IrtIterator& rhs) { class IndirectReferenceTable { public: - IndirectReferenceTable(size_t initialCount, size_t maxCount, IndirectRefKind kind); + // WARNING: When using with abort_on_error = false, the object may be in a partially + // initialized state. Use IsValid() to check. + IndirectReferenceTable(size_t initialCount, size_t maxCount, IndirectRefKind kind, + bool abort_on_error = true); ~IndirectReferenceTable(); + bool IsValid() const; + /* * Add a new entry. "obj" must be a valid non-NULL object reference. * |