tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 43683] Accessing Servlet while Reloading context gives 404 error
Date Thu, 26 Jun 2008 22:49:00 GMT

--- Comment #21 from Mark Thomas <>  2008-06-26 15:48:59 PST ---
The good news is I can now repeat test case 3 and have found the root cause.

There is a synchronisation issue with StandardWrapper. In short, one thread can
enter allocate() and before countAllocated is incremented, another thread can
enter unload().

The bad news is that I suspect the fix might not be pleasant. allocate() is on
the critical path so just synchronising allocate() would likely be bad from a
performance point of view. I haven't really thought about this much yet, so I
am hoping there is a better fix to be found. I'll have a think about a solution
for this over the next few days. Hopefully I'll have something next week. In
the meantime, any suggestions are welcome.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message