gnodet commented on PR #684:
URL: 
https://github.com/apache/maven-deploy-plugin/pull/684#issuecomment-5445669138

   Applied the same thread-safety fix as apache/maven-install-plugin#427: the 
`get` / `null-check` / `put` on the plugin context map is now wrapped in 
`synchronized (ctx)` to prevent the TOCTOU race in parallel builds (`-T`).
   
   `Session.getPluginContext()` returns `Map`, not `ConcurrentMap`, so 
`synchronized` is the safest choice — no cast, no implementation assumptions. 
After the first fill the monitor is uncontended.
   
   All 21 existing tests pass.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to