refactor: for-in 迭代器体脱离 epoch arena 改堆上 Box 独占释放

This commit is contained in:
2026-09-29 16:10:15 +00:00
parent c067dcce21
commit c671a6cfb0
14 changed files with 117 additions and 55 deletions
+1 -1
View File
@@ -703,7 +703,7 @@ fn async_state_mut(obj: &JsObject) -> Option<&mut AsyncState> {
}
/// 异步挂起帧是否持有 for-in 迭代器:执行期收集门控按指针扫描
/// (ForInIter body 分配于 epoch arena,换新 Bump 即时失效在表迭代器)。
/// (迭代器体是堆上 Box,门控是保守门)。
pub(crate) fn async_holds_suspended_for_in(obj: &JsObject) -> bool {
let Some(state) = async_state_mut(obj) else {
return false;