RFR: CODETOOLS-7902834: JMHSample_25_API_GA selectToBreed selection bug
Aleksey Shipilev
shade at openjdk.java.net
Tue Mar 9 18:19:25 UTC 2021
SonarCloud instance reports: 'Was "-=" meant instead?'
double thresh = Math.random() * totalScore;
for (Chromosome c : list) {
if (thresh < 0) return c;
thresh =- c.score(); // <--- here
}
-------------
Commit messages:
- CODETOOLS-7902834: JMHSample_25_API_GA selectToBreed selection bug
Changes: https://git.openjdk.java.net/jmh/pull/28/files
Webrev: https://webrevs.openjdk.java.net/?repo=jmh&pr=28&range=00
Issue: https://bugs.openjdk.java.net/browse/CODETOOLS-7902834
Stats: 7 lines in 1 file changed: 4 ins; 0 del; 3 mod
Patch: https://git.openjdk.java.net/jmh/pull/28.diff
Fetch: git fetch https://git.openjdk.java.net/jmh pull/28/head:pull/28
PR: https://git.openjdk.java.net/jmh/pull/28
More information about the jmh-dev
mailing list