Changes to FastRemovalDequeue:
authorrjung <rjung@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 29 Oct 2010 22:44:52 +0000 (22:44 +0000)
committerrjung <rjung@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 29 Oct 2010 22:44:52 +0000 (22:44 +0000)
commitd1fe893c7c54d591978112013ee4692d40bd9771
treec4eaaf87e1a98bba0f9b5851ed21c6205b62acb2
parentc3fcbb926f0d837f7d8c4bf00d0fb70eefa53fdd
Changes to FastRemovalDequeue:
- Make queue thread safe and remove external synchronisation
- Provide maximal size to queue
- Include size checking when adding entries
- Return handle to displaced entries when queue overflows
  while adding a new entry
- Explicitely invalidate queue entries on removal by using
  new field "valid"

Changes to JspRuntimeContext:
- Initialize FastRemovalDequeue with correct size
- No more external synchronisation for FastRemovalDequeue
- Private utility method to unload a wrapper
- Check for displaced wrapper when adding a new wrapper
  to the queue and unload it

Changes to JspServletWrapper:
- No more explicit overflow check for the queue. It's now
  done implicitely when adding to the queue.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1028935 13f79535-47bb-0310-9956-ffa450edef68
java/org/apache/jasper/compiler/JspRuntimeContext.java
java/org/apache/jasper/servlet/JspServletWrapper.java
java/org/apache/jasper/util/FastRemovalDequeue.java