On Fri, 31 May 2024 16:26:50 GMT, Per Minborg <pminb...@openjdk.org> wrote:
> Would it make sense to add some tests that assert, `VarHandle` objects get > cached? We can't - at least not easily. As explained in the new comment, the var handles cached by this method are "raw" and always adapted by some other API. So you will never observe their identities from outside. ------------- PR Comment: https://git.openjdk.org/jdk/pull/19485#issuecomment-2142726918