Re: RFR: 8346785: Potential infinite loop in JavadocTokenizer.ensures

2025-04-14 Thread Chen Liang
On Mon, 14 Apr 2025 10:59:48 GMT, Nizar Benalla wrote: > Please review this patch to fix a potential infinite loop in > `JavadocTokenizer.ensure` when `map.length` and `size + need` approach > Interger.MAX_VALUE. > > While I couldn't reproduce the issue even with large inputs (~1.9GB java file

RFR: 8346785: Potential infinite loop in JavadocTokenizer.ensures

2025-04-14 Thread Nizar Benalla
Please review this patch to fix a potential infinite loop in `JavadocTokenizer.ensure` when `map.length` and `size + need` approach Interger.MAX_VALUE. While I couldn't reproduce the issue even with large inputs (~1.9GB java file where almost the entire file is one javadoc comment), the fix is