Skip to content

Commit

Permalink
Support loading old phmap_dump files.
Browse files Browse the repository at this point in the history
  • Loading branch information
greg7mdp committed Oct 5, 2024
1 parent 99469a2 commit ea08c76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/gtl/phmap_dump.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ bool raw_hash_set<Policy, Hash, Eq, Alloc>::phmap_load(InputArchive& ar) {
if (version > 0) {
// growth_left should be restored after calling initialize_slots() which resets it.
ar.loadBinary(&growth_left(), sizeof(size_t));
} else {
drop_deletes_without_resize();
}
ar.loadBinary(ctrl_, sizeof(ctrl_t) * (capacity_ + Group::kWidth + 1));
ar.loadBinary(slots_, sizeof(slot_type) * capacity_);
Expand Down

0 comments on commit ea08c76

Please sign in to comment.