Skip to content

Conversation

@vtjnash
Copy link
Member

@vtjnash vtjnash commented Jan 9, 2026

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.

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.
@vtjnash vtjnash requested review from JeffBezanson and Keno January 9, 2026 14:57
@vtjnash vtjnash added backport 1.10 Change should be backported to the 1.10 release backport 1.11 Change should be backported to release-1.11 backport 1.12 Change should be backported to release-1.12 backport 1.13 Change should be backported to release-1.13 labels Jan 9, 2026
@Keno
Copy link
Member

Keno commented Jan 9, 2026

@NHDaly can you check if this fixes your issue?

@NHDaly
Copy link
Member

NHDaly commented Jan 9, 2026

@Keno: Yes, i just checked and this does also seem to fix the failing test case added in #60620. 👍

NHDaly added a commit to RelationalAI/julia that referenced this pull request Jan 12, 2026
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: Jeff Bezanson <jeff.bezanson@gmail.com>
@DilumAluthge DilumAluthge mentioned this pull request Jan 14, 2026
57 tasks
@NHDaly
Copy link
Member

NHDaly commented Jan 15, 2026

Thanks all! Is this good to merge?

@Keno Keno merged commit 14ca1ab into master Jan 15, 2026
8 checks passed
@Keno Keno deleted the jn/ctx_switch_wb_back branch January 15, 2026 05:23
kpamnany pushed a commit to RelationalAI/julia that referenced this pull request Jan 15, 2026
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 <v.churavy@gmail.com>
Co-authored-by: Jeff Bezanson <jeff.bezanson@gmail.com>
@DilumAluthge DilumAluthge mentioned this pull request Jan 15, 2026
40 tasks
DilumAluthge pushed a commit that referenced this pull request Jan 15, 2026
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 <v.churavy@gmail.com>
Co-authored-by: Jeff Bezanson <jeff.bezanson@gmail.com>
(cherry picked from commit 14ca1ab)
kpamnany pushed a commit to RelationalAI/julia 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 <nathan.daly@relational.ai>
Co-authored-by: Keno Fischer <keno@juliacomputing.com>

* 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 <v.churavy@gmail.com>
Co-authored-by: Jeff Bezanson <jeff.bezanson@gmail.com>

---------

Co-authored-by: Valentin Churavy <v.churavy@gmail.com>
Co-authored-by: Keno Fischer <keno@juliacomputing.com>
Co-authored-by: Jameson Nash <vtjnash@gmail.com>
Co-authored-by: Jeff Bezanson <jeff.bezanson@gmail.com>
kpamnany pushed a commit to RelationalAI/julia 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 <nathan.daly@relational.ai>
Co-authored-by: Keno Fischer <keno@juliacomputing.com>

* 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 <v.churavy@gmail.com>
Co-authored-by: Jeff Bezanson <jeff.bezanson@gmail.com>

---------

Co-authored-by: Valentin Churavy <v.churavy@gmail.com>
Co-authored-by: Keno Fischer <keno@juliacomputing.com>
Co-authored-by: Jameson Nash <vtjnash@gmail.com>
Co-authored-by: Jeff Bezanson <jeff.bezanson@gmail.com>
kpamnany pushed a commit to RelationalAI/julia 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 <nathan.daly@relational.ai>
Co-authored-by: Keno Fischer <keno@juliacomputing.com>

* 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 <v.churavy@gmail.com>
Co-authored-by: Jeff Bezanson <jeff.bezanson@gmail.com>

---------

Co-authored-by: Valentin Churavy <v.churavy@gmail.com>
Co-authored-by: Keno Fischer <keno@juliacomputing.com>
Co-authored-by: Jameson Nash <vtjnash@gmail.com>
Co-authored-by: Jeff Bezanson <jeff.bezanson@gmail.com>
DilumAluthge pushed a commit that referenced this pull request Jan 19, 2026
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 <v.churavy@gmail.com>
Co-authored-by: Jeff Bezanson <jeff.bezanson@gmail.com>
(cherry picked from commit 14ca1ab)
DilumAluthge pushed a commit that referenced this pull request Jan 19, 2026
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 <v.churavy@gmail.com>
Co-authored-by: Jeff Bezanson <jeff.bezanson@gmail.com>
(cherry picked from commit 14ca1ab)
DilumAluthge pushed a commit that referenced this pull request Jan 19, 2026
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 <v.churavy@gmail.com>
Co-authored-by: Jeff Bezanson <jeff.bezanson@gmail.com>
(cherry picked from commit 14ca1ab)
@DilumAluthge DilumAluthge mentioned this pull request Jan 19, 2026
71 tasks
DilumAluthge pushed a commit that referenced this pull request Jan 20, 2026
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 <v.churavy@gmail.com>
Co-authored-by: Jeff Bezanson <jeff.bezanson@gmail.com>
(cherry picked from commit 14ca1ab)
kpamnany pushed a commit to RelationalAI/julia that referenced this pull request Jan 21, 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 <nathan.daly@relational.ai>
Co-authored-by: Keno Fischer <keno@juliacomputing.com>

* 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 <v.churavy@gmail.com>
Co-authored-by: Jeff Bezanson <jeff.bezanson@gmail.com>

---------

Co-authored-by: Valentin Churavy <v.churavy@gmail.com>
Co-authored-by: Keno Fischer <keno@juliacomputing.com>
Co-authored-by: Jameson Nash <vtjnash@gmail.com>
Co-authored-by: Jeff Bezanson <jeff.bezanson@gmail.com>
kpamnany pushed a commit to RelationalAI/julia that referenced this pull request Jan 21, 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 <nathan.daly@relational.ai>
Co-authored-by: Keno Fischer <keno@juliacomputing.com>

* 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 <v.churavy@gmail.com>
Co-authored-by: Jeff Bezanson <jeff.bezanson@gmail.com>

---------

Co-authored-by: Valentin Churavy <v.churavy@gmail.com>
Co-authored-by: Keno Fischer <keno@juliacomputing.com>
Co-authored-by: Jameson Nash <vtjnash@gmail.com>
Co-authored-by: Jeff Bezanson <jeff.bezanson@gmail.com>
kpamnany pushed a commit to RelationalAI/julia that referenced this pull request Jan 21, 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 <nathan.daly@relational.ai>
Co-authored-by: Keno Fischer <keno@juliacomputing.com>

* 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 <v.churavy@gmail.com>
Co-authored-by: Jeff Bezanson <jeff.bezanson@gmail.com>

---------

Co-authored-by: Valentin Churavy <v.churavy@gmail.com>
Co-authored-by: Keno Fischer <keno@juliacomputing.com>
Co-authored-by: Jameson Nash <vtjnash@gmail.com>
Co-authored-by: Jeff Bezanson <jeff.bezanson@gmail.com>
KristofferC pushed a commit that referenced this pull request Jan 26, 2026
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 <v.churavy@gmail.com>
Co-authored-by: Jeff Bezanson <jeff.bezanson@gmail.com>
(cherry picked from commit 14ca1ab)
@KristofferC KristofferC mentioned this pull request Jan 26, 2026
43 tasks
DilumAluthge pushed a commit that referenced this pull request Jan 29, 2026
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 <v.churavy@gmail.com>
Co-authored-by: Jeff Bezanson <jeff.bezanson@gmail.com>
(cherry picked from commit 14ca1ab)
@KristofferC KristofferC removed backport 1.12 Change should be backported to release-1.12 backport 1.13 Change should be backported to release-1.13 labels Feb 3, 2026
@github-actions github-actions bot removed the backport 1.11 Change should be backported to release-1.11 label Feb 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 1.10 Change should be backported to the 1.10 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants