8325871: Move StringTable and SymbolTable rehashing calls

Reviewed-by: eosterlund, aboldtch
This commit is contained in:
Coleen Phillimore 2024-03-18 14:42:03 +00:00
parent 9e98118f28
commit 7734466c46
13 changed files with 141 additions and 206 deletions

View file

@ -399,7 +399,8 @@ static void cht_move_to(Thread* thr) {
EXPECT_TRUE(from_cht->insert(thr, stl3, val3)) << "Insert unique value failed.";
SimpleTestTable* to_cht = new SimpleTestTable();
EXPECT_TRUE(from_cht->try_move_nodes_to(thr, to_cht)) << "Moving nodes to new table failed";
// This is single threaded and not shared
from_cht->rehash_nodes_to(thr, to_cht);
ChtCountScan scan_old;
EXPECT_TRUE(from_cht->try_scan(thr, scan_old)) << "Scanning table should work.";