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

Johan Sjölen jsjolen at openjdk.org
Thu Sep 29 09:56:24 UTC 2022


On Wed, 28 Sep 2022 13:45:53 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 with a new target base due to a merge or a rebase. The pull request now contains six commits:
> 
>  - Introduce new, invalid, memory flag
>  - delete _print_inlining_stream
>  - Merge remote-tracking branch 'origin/master' into dyn-cheapobj
>  - Avoid leaking predString
>  - Try out Coleen's suggestion
>  - DynCHeapObj

I still have to go through all of this and check for memory leaks, just FYI.

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

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


More information about the hotspot-dev mailing list