memory adjustments because of tls