RFR: 8253162: Make frame::oops_do const

Kim Barrett kbarrett at openjdk.java.net
Tue Sep 15 11:37:46 UTC 2020


On Tue, 15 Sep 2020 11:08:55 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:

> Make frame::oops_do const, so that we can use a const frame& receiver when appropriate. With this, we can get rid of
> the temporary copies made just to make the frame variable non-const. See for example:
> https://github.com/openjdk/zgc/blob/c4765b5599d07124410f8a80b1acef9349a998e0/src/hotspot/share/gc/z/zStackWatermark.cpp#L96

Marked as reviewed by kbarrett (Reviewer).

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

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


More information about the hotspot-dev mailing list