Tweak TLS init/deinit (#4551)
* Delete the entire TLS in one go * Put TLS allocation separately * Keep TLS in a single array
This commit is contained in:
committed by
Stanislav Erokhin
parent
0e12c55770
commit
5fc17ce5fa
@@ -225,8 +225,10 @@ void FreezeSubgraph(ObjHeader* obj);
|
||||
void EnsureNeverFrozen(ObjHeader* obj);
|
||||
// Add TLS object storage, called by the generated code.
|
||||
void AddTLSRecord(MemoryState* memory, void** key, int size) RUNTIME_NOTHROW;
|
||||
// Clear TLS object storage, called by the generated code.
|
||||
void ClearTLSRecord(MemoryState* memory, void** key) RUNTIME_NOTHROW;
|
||||
// Allocate storage for TLS. `AddTLSRecord` cannot be called after this.
|
||||
void CommitTLSStorage(MemoryState* memory) RUNTIME_NOTHROW;
|
||||
// Clear TLS object storage.
|
||||
void ClearTLS(MemoryState* memory) RUNTIME_NOTHROW;
|
||||
// Lookup element in TLS object storage.
|
||||
ObjHeader** LookupTLS(void** key, int index) RUNTIME_NOTHROW;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user