RFR: 8294308: Allow dynamically choosing the MEMFLAGS of a type without ResourceObj [v4]

Johan Sjölen jsjolen at openjdk.org
Mon Oct 3 13:37:27 UTC 2022


On Mon, 3 Oct 2022 13:02:51 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:

>> Here's a suggested solution for the ticket mentioned and a use case for outputStream. I'm not attached to the name.
>> 
>> This saves space for all allocated outputStreams, which is nice. It also makes the purpose of ResourceObj more clear ("please handle the life cycle for me"), reducing the need for it.
>> 
>> Thank you for considering it.
>
> Johan Sjölen has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Refactoring

Scratch the comment regarding memory leaks. C heap allocated ResourceObjs must be manually deleted anyway.

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

PR: https://git.openjdk.org/jdk/pull/10412


More information about the serviceability-dev mailing list