> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: MemoryLeak Problem with ThreadWithAttributes > > The current version of ThreadWithAttributes doesn't have any > methods with locals of type Object[]
These aren't local variables, these are references local to the object. There are at least two such Object arrays in TWA: notes, and thData. The notes array is fixed at 16 entries, so it must be thData. The thData array is set by a call to setThreadData(), and can only be cleared by said call with a null parameter. But there are no such calls, so once it's set, the array is kept. (All of the above is true from 5.5.15 through 6.0.18.) I'm still chasing what the array is used for. > I wouldn't guess that java.lang.Thread would have > anything like this. It doesn't (at least in the OP's JVM version). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org