7168505: (bf) MappedByteBuffer.load does not load buffer's content into memory

Alan Bateman Alan.Bateman at oracle.com
Tue May 15 02:33:14 PDT 2012


On 15/05/2012 08:07, Rémi Forax wrote:
>
> I wonder if it's not better to have a fake method recognized by the VM 
> for that,
> because if the VM is smart enough, 'unused' is only used in load() so 
> it doesn't really escape.
> A VM/JIT that will generate assembly code for the whole class, by 
> example when module is installed
> in module repository, will see that easily.
I suspect the potential for reflection usage will make it harder for 
prove. I think the solution in the webrev is okay for now, but I agree 
that we might need something special, like a get method that is known to 
the VM as having potential side effects.

-Alan


More information about the nio-dev mailing list