You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Colin Patrick McCabe (JIRA)" <ji...@apache.org> on 2012/07/06 01:42:34 UTC
[jira] [Commented] (HDFS-799) libhdfs must call DetachCurrentThread
when a thread is destroyed
[ https://issues.apache.org/jira/browse/HDFS-799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13407604#comment-13407604 ]
Colin Patrick McCabe commented on HDFS-799:
-------------------------------------------
This can be accomplished by using the pthread thread-local-storage interface coupled with the "optional destructor function." See http://www.manpagez.com/man/3/pthread_key_create/
> libhdfs must call DetachCurrentThread when a thread is destroyed
> ----------------------------------------------------------------
>
> Key: HDFS-799
> URL: https://issues.apache.org/jira/browse/HDFS-799
> Project: Hadoop HDFS
> Issue Type: Improvement
> Reporter: Christian Kunz
> Assignee: Colin Patrick McCabe
>
> Threads that call AttachCurrentThread in libhdfs and disappear without calling DetachCurrentThread cause a memory leak.
> Libhdfs should detach the current thread when this thread exits.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira