Skip to content

Conversation

@sagudev
Copy link
Member

@sagudev sagudev commented Nov 7, 2025

Fixup for #638. new_compile_options cannot trigger gc, but evaluate_script does. So I factored out evaluate_script from runtime as it only uses cx from it. evaluate_script can reenter (as seen in https://github.com/servo/servo/actions/runs/19171314009/job/54804914261) so having it on runtime is not actually usable in servo), but reentering on JSContext is ok, because this is invoked via callbacks, where we get cx passed down (well we will get it in the future). We still keep evaluate_script on runtime for test and other simple cases.

This should help servo/servo#40465.

t
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
@sagudev sagudev requested a review from jdm November 7, 2025 17:21
@sagudev sagudev added this pull request to the merge queue Nov 8, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Nov 8, 2025
@jdm jdm added this pull request to the merge queue Nov 8, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Nov 8, 2025
@jdm jdm added this pull request to the merge queue Nov 8, 2025
Merged via the queue into servo:main with commit d2783b7 Nov 9, 2025
36 checks passed
@sagudev sagudev deleted the usable branch November 9, 2025 09:10
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