On Tue, 24 Mar 2026 12:50:31 GMT, Roland Westrelin <[email protected]> wrote:

> BCEscapeAnalyzer can conservatively mark all arguments as being
> returned by a method. When that happens, it includes arguments that
> are not the same as the return type. That's an issue for flattened
> values because they then don't have the same fields. The way I dealt
> with that corner case in my previous patch was broken because it
> didn't handle cases where in all the arguments, some have the same
> type as the return type, some not.

This pull request has now been integrated.

Changeset: 2bb7e721
Author:    Roland Westrelin <[email protected]>
URL:       
https://git.openjdk.org/valhalla/commit/2bb7e7218790bb1a0cc8c8618962ae6efa4d5f1a
Stats:     287 lines in 4 files changed: 247 ins; 21 del; 19 mod

8380197: [lworld] [REDO] OptimizePtrCompare is too conservative

Reviewed-by: thartmann

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

PR: https://git.openjdk.org/valhalla/pull/2257

Reply via email to