RFR: 8221397 Support implementation-defined Map Modes

Alan Bateman Alan.Bateman at oracle.com
Tue Apr 9 12:47:56 UTC 2019

On 08/04/2019 15:05, Andrew Dinn wrote:
> :
> Hmm, yes that's an interesting point. Of course, I'll take whatever
> suggestions you are willing to throw this way :-)
What would you think about not promoting the constructor to public? The 
original motivation for that was to be able to create additional map 
modes in jdk.internal.misc.ExtendedMapMode but we can use shared secrets 
or other skullduggery to do that. The advantage is that we avoid 
creating expectation in the API that developers can create their own map 
modes. The rest of the solution doesn't change, it's just eliminating 
the ability to create modes beyond the standard and extended modes.


More information about the core-libs-dev mailing list