RFR: JDK-8199216: Memory leak and quadratic layout time with nested nodes (hbox) and pseudo-class in style sheet [v8]

John Hendrikx jhendrikx at openjdk.org
Sat Jun 10 00:23:51 UTC 2023


On Fri, 9 Jun 2023 22:08:53 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

> one question: since the JBS talks about memory leak, is it possible to devise a test for that?
> 
> otherwise, looks good.

It's not really a memory leak, the amount of memory that it can take can just be quite large in the right circumstances.  Once it has been allocated though, it will remain the same and won't grow further.  The test in `ImmutablePseudoClassSetsCacheTest` confirms (at a unit level) that it is indeed caching sets that are the same. It may be possible to create a higher level test as well, similar to the code example in the ticket.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1076#issuecomment-1585302657


More information about the openjfx-dev mailing list