Don't preserve auxiliary buffer contents in LSBRadixSorter if it grows (#12947)

This commit is contained in:
Stefan Vodita 2024-06-15 19:36:21 +02:00 committed by GitHub
parent 487d24ae69
commit 8f50976c26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -273,6 +273,8 @@ Optimizations
* GITHUB#13431: Replace TreeMap and use compiled Patterns in Japanese UserDictionary. (Bruno Roustant)
* GITHUB#12941: Don't preserve auxiliary buffer contents in LSBRadixSorter if it grows. (Stefan Vodita)
Bug Fixes
---------------------
(No changes)

View File

@ -92,7 +92,7 @@ public final class LSBRadixSorter {
return;
}
buffer = ArrayUtil.grow(buffer, len);
buffer = ArrayUtil.growNoCopy(buffer, len);
int[] arr = array;