RFR [9] 8140687: Move @Contended to the jdk.internal.vm.annotation package

Paul Sandoz paul.sandoz at oracle.com
Thu Nov 12 14:00:54 UTC 2015


> On 12 Nov 2015, at 14:48, Vitaly Davidovich <vitalyd at gmail.com> wrote:
> 
> Hi Paul,
> 
> There is a very valid concern, since @Contended changes object layout and increases object size, liberal use might tickle an overflow in HotSpot code. Hence why it has remained internal so far.
> 
> What overflow? OOM of the heap? How is that a "very valid" concern? Why would it be used liberally? Why are you allowing users to allocate any memory whatsoever? Why not put a cap on the size of objects non-JDK code can allocate? :) I mean seriously, with all due respect, the occasional "our users are dumb and misinformed" sentiment is very off-putting.
> 

Where did i say that? You are incorrectly reading between the lines. The concern is actually smart and well informed users that may dliberately exploit a bug/weakness in the VM.

Paul.

> If you think there are, currently, *implementation* issues with how @Contended is handled in the VM which cannot be addresses, I'll buy that.  But can we please stop with the dumbing down? :)
> 


More information about the hotspot-runtime-dev mailing list