The following line:
if (("I'm a bad hack".equals(
System.getProperty("guice.allow.nulls.bad.bad.bad")))) {
performs a System.getProperty invocation, which in turn invokes get() on
its static field props. The get() method is synchronized and thus
effectively forms a lock, exclusive on the entire JVM. This negatively
affects multi-thread injection performance as it is invoked transitively
from InjectorImpl.getInstance().
This behaviour was observed on WebSphere on IBM Java 5 but is probably
present in SUN's java as well.
Original issue reported on code.google.com by martin.v...@gmail.com on 23 Jul 2008 at 2:29
Original issue reported on code.google.com by
martin.v...@gmail.com
on 23 Jul 2008 at 2:29