Added garbage collection support for TLS structures.