summaryrefslogtreecommitdiff
path: root/compiler/optimizing/codegen_test_utils.h
diff options
context:
space:
mode:
authorAlex Light <allight@google.com>2018-07-13 11:18:22 -0700
committerAlex Light <allight@google.com>2018-07-16 16:20:01 -0700
commit184f0759ef700b1412c7df412c4ebb297427d9fc (patch)
treebeef751010816fbbee70494422fd48d46559a4ac /compiler/optimizing/codegen_test_utils.h
parentec1f1a91328f44d93cfc16e39160dbdfce2f7b9a (diff)
Rewrite thread CustomTLS to support keyed TLS entries
Our Thread struct allowed plugins or other parts of the runtime to use a single custom_tls_ void* pointer to store additional data in the Thread struct. Unfortunately it was limited to a single value. This CL changes the API to allow one to pass in a const char* key that is used to address the TLS data. This lets multiple plugins or parts of the runtime set their own independent TLS entries. This also adds support for TLS entries actually being deallocated automatically. Test: ./test.py --host Change-Id: I40fa767b9c61a755b2ed910e4ad1e6327705e941
Diffstat (limited to 'compiler/optimizing/codegen_test_utils.h')
0 files changed, 0 insertions, 0 deletions