mirror of
https://github.com/servo/servo.git
synced 2025-07-03 05:23:38 +01:00
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:
parent
b1926b4656
commit
4b64390b81
3 changed files with 65 additions and 27 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue