jruby/jruby — pull request #144 by bbrowning (2012-04-25 22:54:43+00:00)
Title: Fix recursiveKey usage across multiple threads (JRUBY-6621)

Instead of calling recursiveKey.set when the runtime is initialized,
we implement getInitialValue of ThreadLocal to supply the default
value when recursiveKey.get() is called for the first time on a given
thread.

This avoids an NPE when a runtime is initialized on one thread and
subsequently used on another thread under 1.9.