Fix all TLS tyindexes after init
commitcf669e59a194bead84b72e97da32fe9266c09e25
authorEdwin Smith <smith@fb.com>
Fri, 15 Sep 2017 15:45:29 +0000 (15 08:45 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Fri, 15 Sep 2017 16:08:25 +0000 (15 09:08 -0700)
tree5c9e317ae7ea153ab29badf891e1309bf0a55576
parent9a67b70c6aadf403a97f3d77b1b722e0d959724d
Fix all TLS tyindexes after init

Summary:
Any ThreadLocalNode<T> instances that were registered before we
initialized type_scan need to be fixed. Just iterate through the
list updating all of them, instead of ad-hoc fixups.

Reviewed By: ricklavoie

Differential Revision: D5835311

fbshipit-source-id: d8e65b43189bf807b951b33b2cda3db67218de2b
hphp/runtime/base/ini-setting.cpp
hphp/runtime/base/program-functions.cpp
hphp/util/thread-local.cpp
hphp/util/thread-local.h