RFR: 8273372: More precise ResourceMark in ReferenceProcessor

Leo Korinth lkorinth at openjdk.java.net
Thu Sep 16 09:25:44 UTC 2021


On Mon, 6 Sep 2021 08:26:37 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

> Simple change of moving `ResourceMark` closer to where it is actually required.
> 
> Test: tier1-6

While the change looks good, I agree with Thomas that it is better to remove the trace altogether. Also, in general it is not always better to move the ResourceMark closer to the allocation. I think you should rename the enhancement to a name that betters describe the new code, and removing the trace (and ResourceMark) is the best way forward.

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

Changes requested by lkorinth (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/5375



More information about the hotspot-gc-dev mailing list