Skip to content

Commit d3b98f9

Browse files
committed
Fix integration.
1 parent c82afdd commit d3b98f9

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/test/func/cleanup/cleanup.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ void thread_body()
3333
void monitor_body()
3434
{
3535
for (int i = 0; i < 10000; i++) {
36-
std::cout << "Current: " << snmalloc::Alloc::StateHandle::get_current_usage() << std::endl;
37-
std::cout << "Peak : " << snmalloc::Alloc::StateHandle::get_peak_usage() << std::endl;
38-
std::cout << "Allocs : " << snmalloc::Alloc::StateHandle::pool().get_count() << std::endl;
36+
std::cout << "Current: " << snmalloc::Alloc::Config::Backend::get_current_usage() << std::endl;
37+
std::cout << "Peak : " << snmalloc::Alloc::Config::Backend::get_peak_usage() << std::endl;
38+
std::cout << "Allocs : " << snmalloc::Alloc::Config::pool().get_count() << std::endl;
3939
std::cout << "--------------------------------------------" << std::endl;
4040
std::this_thread::sleep_for(std::chrono::seconds(1));
4141
}

src/test/func/statistics/stats.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ void debug_check_empty_1()
2626
abort();
2727
}
2828

29-
snmalloc::print_alloc_stats<snmalloc::Globals>();
29+
snmalloc::print_alloc_stats<snmalloc::StandardConfig>();
3030

3131
a.dealloc(r);
3232

33-
snmalloc::print_alloc_stats<snmalloc::Globals>();
33+
snmalloc::print_alloc_stats<snmalloc::StandardConfig>();
3434

3535
snmalloc::debug_check_empty<snmalloc::StandardConfig>(&result);
3636
if (result != true)
@@ -53,7 +53,7 @@ void debug_check_empty_1()
5353
abort();
5454
}
5555

56-
snmalloc::print_alloc_stats<snmalloc::Globals>();
56+
snmalloc::print_alloc_stats<snmalloc::StandardConfig>();
5757

5858
a.dealloc(r);
5959

@@ -67,7 +67,6 @@ void debug_check_empty_1()
6767
}
6868

6969
snmalloc::print_alloc_stats<snmalloc::StandardConfig>();
70-
#endif
7170
}
7271

7372
template<size_t size>

0 commit comments

Comments
 (0)