You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Csaba Ringhofer (Jira)" <ji...@apache.org> on 2024/07/12 10:34:00 UTC

[jira] [Created] (IMPALA-13217) Create allocator in Impala with mem tracker in TLS

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: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org