Skip to content

perf: Reduce Global handle liveness overhead#1982

Open
bartlomieju wants to merge 1 commit into
mainfrom
optimize-global-liveness
Open

perf: Reduce Global handle liveness overhead#1982
bartlomieju wants to merge 1 commit into
mainfrom
optimize-global-liveness

Conversation

@bartlomieju
Copy link
Copy Markdown
Member

Summary

  • replace per-Global IsolateHandle/Arc storage with a lightweight isolate liveness cell
  • preserve late-drop behavior by marking the liveness cell null during isolate teardown
  • keep the liveness cell valid after isolate disposal so late Global drops can observe disposal without retaining an Arc

Verification

  • cargo fmt
  • cargo check

I also tried cargo test --test test_api global -- --nocapture, but this checkout failed at link time due existing unresolved symbols (v8__Object__SetLazyDataProperty, v8__String__Concat) after Rust compilation.

@bartlomieju bartlomieju force-pushed the optimize-global-liveness branch from 34ca609 to 94b5189 Compare May 15, 2026 15:58
@bartlomieju bartlomieju changed the title Reduce Global handle liveness overhead pref: Reduce Global handle liveness overhead May 15, 2026
@littledivy littledivy changed the title pref: Reduce Global handle liveness overhead perf: Reduce Global handle liveness overhead May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants