Is the entire Xss (stack space) used for each Java thread?

I am considering increasing the stack size to work around the StackOverflowError thrown by the regex library which does not appear to be on the plans for a fix.

Edit: Solution

  • Stephen C's answer is probably the best answer to the problem, even if it is not an answer to the question. Although my string size was more than 4k already, I was still likely to eventually have the problem again during the lifetime of the product
  • aioobe's answer is the best answer to the actual question, perhaps not the actual problem.
  • Chris's answer is a very good idea. Edit: JRegex worked great!

7
задан Community 23 May 2017 в 12:18
поделиться