On Wed, 23 Apr 2025 22:39:40 GMT, Chen Liang <li...@openjdk.org> wrote:

> When LambdaForms are interpreted, so are field lambda forms. When this 
> happens, we may get into an infinite recursion due to field lambda forms 
> using `MethodHandleStatics.UNSAFE` via field lambda form.
> 
> I think the best solution here is to always eagerly compile field DMH forms - 
> we already do so for all method forms, and there is a finite number of field 
> forms, mostly pregenerated. The reference with cast form is erroneously 
> missed, and it is actually the culprit of this issue. Will pregenerate that 
> in another patch.

Thanks for the review!

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

PR Comment: https://git.openjdk.org/jdk/pull/24835#issuecomment-2843414466

Reply via email to