rmannibucau commented on pull request #64:
URL: https://github.com/apache/openjpa/pull/64#issuecomment-657685084


   @jgrassel , for now I'm trying to see in which case we need that. Say me if 
I'm wrong but the scope is only about the javaagent (other cases - ie container 
deployment enhancement and build time enhancement - must be single threaded by 
construction today). Since all entities are loaded when the EMF is created it 
should also be single threaded until the EMF is lazily created and concurrently 
at runtime - which must be handled by the EMF then IMO. The comment is 
surprising though cause it means it only happens when loading openjpa itself - 
which kind of implies the temp loader should filter openjpa "runtime" instead 
of adding this boolean. So wonder if you are able to replicate the issue in a 
test (even abusing of countdownlatch or "sleep" in loadClass) to ensure we fix 
an issue instead of propagating dead code. Hope it makes sense.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to