Skip to content

codegen: make more judicious use of global rooting#56625

Merged
vtjnash merged 2 commits intomasterfrom
jn/codegen-temp-roots
Nov 22, 2024
Merged

codegen: make more judicious use of global rooting#56625
vtjnash merged 2 commits intomasterfrom
jn/codegen-temp-roots

Conversation

@vtjnash
Copy link
Copy Markdown
Member

@vtjnash vtjnash commented Nov 20, 2024

Only temporarily root objects during codegen, so that it is the responsibility of the caller to ensure the values live (including write barriers and old generations) only as long as necessary for correct execution, and not preserve values that never make it into the IR.

Only temporarily root objects during codegen, so that it is the
responsibility of the caller to ensure the values live (including write
barriers and old generations) only as long as necessary for correct
execution, and not preserve values that never make it into the IR.
@vtjnash vtjnash added the compiler:codegen Generation of LLVM IR and native code label Nov 20, 2024
@vtjnash vtjnash requested a review from gbaraldi November 20, 2024 17:10
@vtjnash vtjnash merged commit 7354be3 into master Nov 22, 2024
@vtjnash vtjnash deleted the jn/codegen-temp-roots branch November 22, 2024 19:30
@gbaraldi gbaraldi added the backport 1.11 Change should be backported to release-1.11 label Dec 5, 2024
@KristofferC KristofferC mentioned this pull request Dec 13, 2024
51 tasks
@KristofferC
Copy link
Copy Markdown
Member

Needs a manual backport.

@vtjnash vtjnash removed the backport 1.11 Change should be backported to release-1.11 label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compiler:codegen Generation of LLVM IR and native code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants