Replace usage of ThreadLocalProxy with RDS locals
commitf6d5d01d20269932b5c7ae4d7ea38e292b58f8cf
authorShaunak Kishore <kshaunak@fb.com>
Mon, 17 Dec 2018 20:43:00 +0000 (17 12:43 -0800)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Mon, 17 Dec 2018 20:57:33 +0000 (17 12:57 -0800)
tree839472725c0e22f151ae265a89522ec1e74c6431
parent8ff2225425b802388b92bf2a6238842ce4a66e54
Replace usage of ThreadLocalProxy with RDS locals

Summary: ThreadLocalProxy is just a thread-local pointer to client-managed heap memory. This use case is uncommon, so rather than keeping the proxy layer, we replace ThreadLocalProxy<T> with RDSLocal<T*>. Since the client is already managing this pointer, we can use RDS_LOCAL_NO_CHECK.

Reviewed By: mofarrell

Differential Revision: D13468784

fbshipit-source-id: d45d7c7210bed9da7ceb7d0935bce426b2e284d1
hphp/runtime/base/rds.cpp
hphp/runtime/ext/asio/asio-session.cpp
hphp/runtime/ext/asio/asio-session.h
hphp/runtime/vm/globals-array.cpp
hphp/util/thread-local-emulate.h
hphp/util/thread-local.h