fix(base): try fix lost tracker
@@ -70,9 +70,11 @@ impl Thread {
ThreadJoinHandle::create(match ThreadTracker::current_mem_tracker() {
None => thread_builder.spawn(f).unwrap(),
- Some(runtime_tracker) => thread_builder
+ Some(memory_tracker) => thread_builder
.spawn(move || {
- ThreadTracker::create(runtime_tracker);
+ ThreadTracker::attach_thread_tracker(Some(ThreadTracker::create(
+ memory_tracker,
+ )));
f()
})
.unwrap(),
