Stuff HashMap journal into a string and verify invariants in a few more places.

The RegisterAppMemory approach isn't working for some reason.

MozReview-Commit-ID: GjGaq6GALI5
This commit is contained in:
Bobby Holley 2017-10-09 15:52:49 -07:00
parent b1926b4656
commit 4b64390b81
3 changed files with 65 additions and 27 deletions

View file

@ -694,6 +694,12 @@ impl<K, V, S> HashMap<K, V, S>
self.table.raw_buffer()
}
/// Verify that the table metadata is internally consistent.
#[inline]
pub fn verify(&self) {
self.table.verify();
}
/// Reserves capacity for at least `additional` more elements to be inserted
/// in the `HashMap`. The collection may reserve more space to avoid
/// frequent reallocations.