All of the issues I was seeing with mark/reset were due to states that resulted in a call to CharChunk.flushBuffer().
I tried many different ways to fix it but by far the simplest was this patch that just increases the size of the CharChunk internal buffer when creating the mark sufficiently that flushBuffer() is never called.
With this patch I can't break mark/reset with bug 44494's test case in single or multibyte mode.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@645722
13f79535-47bb-0310-9956-
ffa450edef68