RFR: 8294954: Remove superfluous ResourceMarks when using LogStream
David Holmes
dholmes at openjdk.org
Fri Oct 7 13:32:11 UTC 2022
On Fri, 7 Oct 2022 11:19:55 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:
> Hi,
>
> I went through all of the places where LogStreams are created and removed the unnecessary ResourceMarks. I also added a ResourceMark in one place, where it was needed because of a call to `::name_and_sig_as_C_string` and moved one to the smallest scope where it is used.
I see now the bug report suggests these RM were in place because the stream itself may have needed them but that this is no longer the case. So was that the only reason for all these RMs?
-------------
PR: https://git.openjdk.org/jdk/pull/10602
More information about the hotspot-dev
mailing list