datastax/java-driver — pull request #120 by mfiguiere (2013-09-10 02:28:53+00:00)
Title: Remove waiters count in HostConnectionPool

- It creates a race condition between the test if = 0 and the lock
- It avoids lock at shutdown where performance will be good enough
- While running, it avoids lock for the thread that create a new connection, and the creation pace is too low to make it worth doing it
- Meanwhile we pay the cost of volatile access several time for each waiting threads