RFR: JDK-8287061: Support for rematerializing scalar replaced objects participating in allocation merges [v13]

Cesar Soares Lucas cslucas at openjdk.org
Tue May 23 16:39:22 UTC 2023


On Mon, 22 May 2023 17:56:41 GMT, Cesar Soares Lucas <cslucas at openjdk.org> wrote:

> Speaking of _only_merge_candidate flag, I find it easier about the code when the property being tracked is whether the ObjectValue is referenced from corresponding JVM state or not. (Maybe call it is_root()?) So, ScopeDesc::objects_to_rematerialize() would skip everything not referenced from JVM state [...]

@iwanowww - I want to make sure I understood "is_root(sv)" correctly. Are you suggesting to implement it as `ScopeDesc::is_root(ScopeValue* sv)` and the body of the method would just check if the `sv` is referenced in locals/expressions/monitor? Did I get it right?

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

PR Comment: https://git.openjdk.org/jdk/pull/12897#issuecomment-1559796992


More information about the hotspot-dev mailing list