Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 87742 invoked from network); 25 Jan 2002 09:16:05 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 25 Jan 2002 09:16:05 -0000 Received: (qmail 13350 invoked by uid 97); 25 Jan 2002 09:16:10 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 13321 invoked by uid 97); 25 Jan 2002 09:16:09 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 13290 invoked from network); 25 Jan 2002 09:16:08 -0000 Message-ID: <20020125091609.39163.qmail@web12001.mail.yahoo.com> Date: Fri, 25 Jan 2002 01:16:09 -0800 (PST) From: Slawek Zachcial Subject: ObjectPool - weak reference based impl To: commons-dev@jakarta.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, I noticed that on the pool todo list there is the action to implement weak reference based pool. Can someone explain to me what is the reason/need behind? Should the idle pool objects be stored with weak references? My understanding is that you use object pool to avoid the unnecessary object creation and rather reuse the existing ones. With weak references the object may/will be cleared once it becomes weakly reachable. So if idle pool objects are weakly reachable you cannot be sure that they will not be garbage collected. I'm not a reference specialist so please help me to understand :-) Best Regards, Slawek Zachcial __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com -- To unsubscribe, e-mail: For additional commands, e-mail: