On Mon, 27 Apr 2026 08:07:43 GMT, Alan Bateman <[email protected]> wrote:

> > Attempting to add an injected field did not work because you cannot reflect 
> > an injected field, not even using Unsafe. So I cannot read the value of an 
> > injected field from Java. Either we go with the encoding in the slot field, 
> > or I will add a separate non-final field "jfrEpoch" to 
> > java.lang.reflect.Field. Thoughts?
> 
> I assume an injected field would be feasible if all the access were via JVM 
> funtions rather than reflect/Unsafe but that would add complexity as it might 
> end up needing instrinics. In that case, an explicit field would be better so 
> the slot field is not overridden.

Sounds like @AlanBateman suggests a dedicated field for the jfrEpoch - coming 
up.

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

PR Comment: https://git.openjdk.org/jdk/pull/30922#issuecomment-4325273230

Reply via email to