Re: RFR: 8321637: Simplify if statement in ArraysSupport::hugeLength

2023-12-18 Thread John Jiang
On Tue, 19 Dec 2023 03:44:26 GMT, Stuart Marks wrote: >> It looks the `else-if` and `else` clauses in method >> `ArraysSupport::hugeLength` could be simplified by `Math::max`. > > This change would make the code shorter, but in my opinion, it obscures > what's going on. This code tries to be

Re: RFR: 8321637: Simplify if statement in ArraysSupport::hugeLength

2023-12-18 Thread Stuart Marks
On Sat, 9 Dec 2023 23:19:52 GMT, John Jiang wrote: > It looks the `else-if` and `else` clauses in method > `ArraysSupport::hugeLength` could be simplified by `Math::max`. This change would make the code shorter, but in my opinion, it obscures what's going on. This code tries to be very

Re: RFR: 8321637: Simplify if statement in ArraysSupport::hugeLength

2023-12-18 Thread John Jiang
On Sat, 9 Dec 2023 23:19:52 GMT, John Jiang wrote: > It looks the `else-if` and `else` clauses in method > `ArraysSupport::hugeLength` could be simplified by `Math::max`. Could this simple PR be reviewed? - PR Comment:

Re: RFR: 8321637: Simplify if statement in ArraysSupport::hugeLength

2023-12-10 Thread John Jiang
On Sun, 10 Dec 2023 03:57:00 GMT, Jie Fu wrote: >> It looks the `else-if` and `else` clauses in method >> `ArraysSupport::hugeLength` could be simplified by `Math::max`. > > The JBS should be an enhancement, not a bug, right? @DamonFool > The JBS should be an enhancement, not a bug, right?

Re: RFR: 8321637: Simplify if statement in ArraysSupport::hugeLength

2023-12-09 Thread Jie Fu
On Sat, 9 Dec 2023 23:19:52 GMT, John Jiang wrote: > It looks the `else-if` and `else` clauses in method > `ArraysSupport::hugeLength` could be simplified by `Math::max`. The JBS should be an enhancement, not a bug, right? - PR Comment:

RFR: 8321637: Simplify if statement in ArraysSupport::hugeLength

2023-12-09 Thread John Jiang
It looks the `else-if` and `else` clauses in method `ArraysSupport::hugeLength` could be simplified by `Math::max`. - Commit messages: - 8321637: Simplify if statement in ArraysSupport::hugeLength Changes: https://git.openjdk.org/jdk/pull/17043/files Webrev: