⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@NHDaly
Copy link
Member

@NHDaly NHDaly commented Jan 12, 2026

PR Description

Backport JuliaLang#60647 and JuliaLang#60617 to RAI v1.12.

Fixes JuliaLang#59483.

Replaces #271.

Checklist

Requirements for merging:

vchuravy and others added 2 commits January 15, 2026 15:26
We store the previous scope in the eh_state and thus hide it from GC.
This means we need to manually preserve that scope across the `try ... catch`,
instead fo the new scope that we switch to.

---------
Co-authored-by: Nathan Daly <[email protected]>
Co-authored-by: Keno Fischer <[email protected]>
Since this task's stack or scope field could have been modified after it
was marked by an incremental collection (and not just for copy stacks),
move the barrier back unconditionally here.

---------

Co-authored-by: Valentin Churavy <[email protected]>
Co-authored-by: Jeff Bezanson <[email protected]>
@kpamnany kpamnany marked this pull request as ready for review January 16, 2026 16:11
@kpamnany kpamnany merged commit e411b32 into v1.12+RAI Jan 16, 2026
3 checks passed
@kpamnany kpamnany deleted the nhd-gc-crash-2 branch January 16, 2026 16:11
kpamnany pushed a commit that referenced this pull request Jan 16, 2026
* Preserve the scope across the exception handler (JuliaLang#60647)

We store the previous scope in the eh_state and thus hide it from GC.
This means we need to manually preserve that scope across the `try ... catch`,
instead fo the new scope that we switch to.

---------
Co-authored-by: Nathan Daly <[email protected]>
Co-authored-by: Keno Fischer <[email protected]>

* add wb_back on all task switch paths (JuliaLang#60617)

Since this task's stack or scope field could have been modified after it
was marked by an incremental collection (and not just for copy stacks),
move the barrier back unconditionally here.

---------

Co-authored-by: Valentin Churavy <[email protected]>
Co-authored-by: Jeff Bezanson <[email protected]>

---------

Co-authored-by: Valentin Churavy <[email protected]>
Co-authored-by: Keno Fischer <[email protected]>
Co-authored-by: Jameson Nash <[email protected]>
Co-authored-by: Jeff Bezanson <[email protected]>
kpamnany pushed a commit that referenced this pull request Jan 16, 2026
* Preserve the scope across the exception handler (JuliaLang#60647)

We store the previous scope in the eh_state and thus hide it from GC.
This means we need to manually preserve that scope across the `try ... catch`,
instead fo the new scope that we switch to.

---------
Co-authored-by: Nathan Daly <[email protected]>
Co-authored-by: Keno Fischer <[email protected]>

* add wb_back on all task switch paths (JuliaLang#60617)

Since this task's stack or scope field could have been modified after it
was marked by an incremental collection (and not just for copy stacks),
move the barrier back unconditionally here.

---------

Co-authored-by: Valentin Churavy <[email protected]>
Co-authored-by: Jeff Bezanson <[email protected]>

---------

Co-authored-by: Valentin Churavy <[email protected]>
Co-authored-by: Keno Fischer <[email protected]>
Co-authored-by: Jameson Nash <[email protected]>
Co-authored-by: Jeff Bezanson <[email protected]>
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.

4 participants