Commit e01e5cf
committed
fix: eliminate race condition in buildDSLDependency() for @-namespaced DSL
Mutating the shared cached definition struct (arguments.definition.dsl)
under concurrent load caused double-concatenation and mis-wiring when
multiple threads resolved the same @-namespaced injection simultaneously
(e.g. inject="myService@moduleName").
Instead of writing back to the shared struct, call getInstance() directly
with the locally-computed concatenated name. The @-prefixed branch in
getModelDSL() always resolves to a plain getInstance() call (no colons
possible), so this is behaviourally identical but fully thread-safe.
https://claude.ai/code/session_015kUgi5MyDwtH2FWf5u5DDN1 parent bad36c5 commit e01e5cf
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
678 | 678 | | |
679 | 679 | | |
680 | 680 | | |
681 | | - | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
682 | 684 | | |
683 | | - | |
684 | 685 | | |
685 | 686 | | |
686 | 687 | | |
| |||
0 commit comments