Branch: refs/heads/main
Home:
https://github.com/hibernate/hibernate-orm
Commit: 207a3637836d8405c140be8abcb0052284056eab
https://github.com/hibernate/hibernate-orm/commit/207a3637836d8405c140be8...
Author: Christoph Rueger <chrisrueger(a)gmail.com>
Date: 2025-02-14 (Fri, 14 Feb 2025)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/sql/results/spi/ListResultsConsumer.java
Log Message:
-----------
HHH-19089 lower collection pre-sizing
see
https://github.com/hibernate/hibernate-orm/pull/9683#discussion_r1954950230
this can avoid memory peaks and CPU spikes because of heavy GC when setMaxResults is
called with a very large limit e.g. Integer.MAX_VALUE (probably accidentally). it turned
out the the previous limit of 1million was too large and could cause issues in production
systems where legacy code bases where not aware of such collection pre-sizing
To unsubscribe from these emails, change your notification settings at
https://github.com/hibernate/hibernate-orm/settings/notifications