Commit 9f72b0c
committed
Clear references to threads and thread contexts on teardown.
This change clears the following on JRuby runtime teardown:
* The thread-local context reference in ThreadService
(dereferenced entirely)
* The mainContext reference in ThreadService
* The mapping from native threads to RubyThread instances.
This should clear all JRuby-specific runtime data attached to
both Ruby and adopted Java threads.
Fixes #3313.
Supersedes #3316.1 parent 081d774 commit 9f72b0c
File tree
3 files changed
+16
-3
lines changed- core/src/main/java/org/jruby
- internal/runtime
3 files changed
+16
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3370 | 3370 | | |
3371 | 3371 | | |
3372 | 3372 | | |
3373 | | - | |
3374 | | - | |
3375 | 3373 | | |
3376 | 3374 | | |
3377 | 3375 | | |
| |||
3388 | 3386 | | |
3389 | 3387 | | |
3390 | 3388 | | |
| 3389 | + | |
| 3390 | + | |
3391 | 3391 | | |
3392 | 3392 | | |
3393 | 3393 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
382 | 383 | | |
383 | 384 | | |
384 | 385 | | |
| 386 | + | |
385 | 387 | | |
386 | 388 | | |
387 | 389 | | |
| |||
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
163 | 174 | | |
164 | 175 | | |
165 | 176 | | |
| |||
0 commit comments