Bug 17130 - Reusing tags doesn't release resources if cache tag is used
Summary: Reusing tags doesn't release resources if cache tag is used
Status: RESOLVED DUPLICATE of bug 16001
Alias: None
Product: Tomcat 4
Classification: Unclassified
Component: Jasper 2 (show other bugs)
Version: 4.1.20
Hardware: Other other
: P3 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-17 15:50 UTC by Vicente Salvador
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vicente Salvador 2003-02-17 15:50:40 UTC
Look at TagHandlerPool.java
Method resuse should call always the release method of the tag, if not the
variables of the class are not initialized and if the tag is used from the
cache, release is never called.

This has been tested on an "tag intensive application". Please patch it for
4.1.21. Next I inclose how the reuse method of TagHandlerPool should be:


public synchronized void reuse(Tag handler) {
	if (current < (handlers.length - 1))
	    handlers[++current] = handler;
// Why else ?, always release resources and prepare for next use
//	else
	    handler.release();
}
Comment 1 Vicente Salvador 2003-02-17 15:54:13 UTC
Changing to a better summary
Comment 2 John Trollinger 2003-02-17 15:55:27 UTC

*** This bug has been marked as a duplicate of 16001 ***