Commit ff96f9d
thread: build a new Ractor's interrupt queue on its own main thread
Defer creating a Ractor main thread's pending-interrupt queue and mask stack
from thread_create_core (the creating thread) to thread_start_func_2 (the new
Ractor's own main thread). The mask stack starts empty rather than duplicating
the creating thread's, so a new Ractor does not inherit its
Thread.handle_interrupt state.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent f5ef758 commit ff96f9d
1 file changed
Lines changed: 20 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
680 | 680 | | |
681 | 681 | | |
682 | 682 | | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
683 | 690 | | |
684 | 691 | | |
685 | 692 | | |
| |||
887 | 894 | | |
888 | 895 | | |
889 | 896 | | |
890 | | - | |
891 | | - | |
892 | | - | |
893 | | - | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
894 | 910 | | |
895 | 911 | | |
896 | 912 | | |
| |||
0 commit comments