at the same time. Bug 2683 Turns out making a variable static in a function will make it not safe when dealing with threads.