thread-safe
Merge pull request #4262 from threus/stripthreadsafe_forhlt

thread-safe