[ 
https://issues.apache.org/jira/browse/HIVE-7705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14095077#comment-14095077
 ] 

Gopal V commented on HIVE-7705:
-------------------------------

Oh, in case anyone wants to dig into how ThreadLocals are obtained, it doesn't 
use the %gs/%fs registers (and therefore aren't comparable to the C/C++ 
equivalents).

They are really entries stored in a currentThread as a hashmap named 
ThreadLocalMap + WeakReferences.

> there's a useless threadlocal in LBUtils that shows up in perf profiles
> -----------------------------------------------------------------------
>
>                 Key: HIVE-7705
>                 URL: https://issues.apache.org/jira/browse/HIVE-7705
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Sergey Shelukhin
>            Assignee: Sergey Shelukhin
>         Attachments: HIVE-7705.patch
>
>
> It might be cheaper to just create a VInt every time, but it can also be 
> passed in externally.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to