refactor: AsyncGeneratorState 收敛到 SuspendedFrame(save/restore/GC 遍历/string 边/深拷贝)

This commit is contained in:
2026-08-10 13:49:05 +08:00
parent d536617f23
commit 71c6c1532e
2 changed files with 54 additions and 236 deletions
+2 -4
View File
@@ -174,10 +174,8 @@ impl SessionGc {
}
}
if obj.is_async_generator_obj() {
for value in crate::async_generator::async_generator_native_edges(obj) {
if value.is_string() {
live.insert(value.as_string_ptr_mut());
}
for ptr in crate::async_generator::async_generator_native_string_edges(obj) {
live.insert(ptr);
}
}
}