Csaba Ringhofer created IMPALA-13217:
----------------------------------------
Summary: Create allocator in Impala with mem tracker in TLS
Key: IMPALA-13217
URL: https://issues.apache.org/jira/browse/IMPALA-13217
Project: IMPALA
Issue Type: Improvement
Components: Backend
Reporter: Csaba Ringhofer
Some libraries allow setting an allocator only globally.
In most cases in Impala a thread is only used in a very specific context - this
allows saving the context to TLS and use it in stateless allocator. For example:
setMemTrackerForThread(mem_tracker_);
vector<int, TrackedAllocator> v;
v.push_back(1); // Allocator can get mem_tracker_ from TLS
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]