37
37
#include < vector>
38
38
39
39
#include " common/config.h"
40
+ #include " common/daemon.h"
40
41
#include " common/status.h"
41
42
#include " gutil/strings/split.h"
42
43
#include " runtime/exec_env.h"
@@ -129,7 +130,7 @@ bool MemInfo::process_minor_gc() {
129
130
std::string pre_sys_mem_available = MemInfo::sys_mem_available_str ();
130
131
131
132
Defer defer {[&]() {
132
- je_purge_all_arena_dirty_pages ();
133
+ Daemon::count_down_je_purge_dirty_pages_thread_latch ();
133
134
std::stringstream ss;
134
135
profile->pretty_print (&ss);
135
136
LOG (INFO) << fmt::format (
@@ -139,7 +140,7 @@ bool MemInfo::process_minor_gc() {
139
140
}};
140
141
141
142
freed_mem += CacheManager::instance ()->for_each_cache_prune_stale (profile.get ());
142
- je_purge_all_arena_dirty_pages ();
143
+ Daemon::count_down_je_purge_dirty_pages_thread_latch ();
143
144
if (freed_mem > _s_process_minor_gc_size) {
144
145
return true ;
145
146
}
@@ -180,7 +181,7 @@ bool MemInfo::process_full_gc() {
180
181
std::string pre_sys_mem_available = MemInfo::sys_mem_available_str ();
181
182
182
183
Defer defer {[&]() {
183
- je_purge_all_arena_dirty_pages ();
184
+ Daemon::count_down_je_purge_dirty_pages_thread_latch ();
184
185
std::stringstream ss;
185
186
profile->pretty_print (&ss);
186
187
LOG (INFO) << fmt::format (
@@ -190,7 +191,7 @@ bool MemInfo::process_full_gc() {
190
191
}};
191
192
192
193
freed_mem += CacheManager::instance ()->for_each_cache_prune_all (profile.get ());
193
- je_purge_all_arena_dirty_pages ();
194
+ Daemon::count_down_je_purge_dirty_pages_thread_latch ();
194
195
if (freed_mem > _s_process_full_gc_size) {
195
196
return true ;
196
197
}
0 commit comments