On Wed, 14 May 2025 03:50:12 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:
>> What is small ? I would not want to try to define that. >> Since the application supplies the file it is in control of that and should >> know what it is supplying. >> Lots of APIs read files and don't mention that they need enough memory to >> hold the data in the file. >> The Applet case was historically even more constrained (64 Mb heap for >> applets once upon a time) and >> it seemed to be fine without this. > > Example of memory requirement: > https://github.com/openjdk/jdk/blob/2c4e8d211a030c85488e656a9a851d10dd0f9c11/src/java.desktop/share/classes/javax/sound/sampled/Clip.java#L34 That's not defining small. Its about another topic entirely : positioning. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/24991#discussion_r2093514437