RFR JDK-8234049: Implementation of Memory Access API (Incubator)

John Rose john.r.rose at oracle.com
Sat Dec 7 23:29:40 UTC 2019

On Dec 5, 2019, at 2:39 PM, Vladimir Ivanov <vladimir.x.ivanov at oracle.com> wrote:
> Regarding hotspot changes:
>> * ciField.cpp - this one is to trust final fields in the foreign memory access implementation (otherwise VM doesn't trust memory segment bounds)
> New packages aren't part of java.base. Considering the implementation resides in an incubator module, is it enough to consider them as trusted and well-known to the JVM?

Yes, I think we can get away with this.
IIUC, the effect you are observing is that java.base trusts something outside of itself.
This is not new, and is OK as long as the “something” can’t be spoofed by an untrusted party.

— John

More information about the core-libs-dev mailing list