Class: Puppet::ThreadLocal Private

Inherits:
Concurrent::RubyThreadLocalVar
  • Object
show all
Defined in:
lib/puppet/thread_local.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

We want to use the pure Ruby implementation even on JRuby. If we use the Java implementation of ThreadLocal, we end up leaking references to JRuby instances and preventing them from being garbage collected.