Commit 6556794
authored
Make RunContext use InheritableThreadLocal (#1758)
Prior to this commit, `RunContext` used a plain `ThreadLocal`,
which caused a new `RunContext` being created for every thread.
With this change, child threads will inherit the `RunContext` stack
of their parent thread and fork it for their use.1 parent 164f1eb commit 6556794
File tree
1 file changed
+16
-1
lines changed- spock-core/src/main/java/org/spockframework/runtime
1 file changed
+16
-1
lines changedLines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
34 | 49 | | |
35 | 50 | | |
36 | 51 | | |
| |||
0 commit comments