brianchandotcom/liferay-portal — pull request #22257 by shuyangzhou (2014-11-15 18:54:09+00:00)
Title: LPS-51568 Bump up unit test thread stack size

CC @ hhuijser

Ugh, I was being dumb, it turned out those stack overflow regex in SF are fine. Just when we ran in ant format-source, we give it Xss2m, but when ran it in junit, we use system default. On a server grade linux machine, that is only 320k.

So bump it up to the same 2m size in junit tests will make the SourceFormatterTest working fine.

But I did not revert 3f35ef4fc15f1fddb28b16cf9f8025ed8982cb7b, I think it did not change the logic, and it just simplified the regex to make it faster and working under 320k stack.

Hugo, please feel free to revert 3f35ef4fc15f1fddb28b16cf9f8025ed8982cb7b, if it did change any logic that I did not see As we are on 2m stack now, it will still be fine.