RFR: 8000617: It should be possible to allocate memory without the VM dying.

Yumin Qi yumin.qi at oracle.com
Wed Oct 10 13:33:11 PDT 2012


Hi, Nils

   As I know we did not use 'std' in hotspot code.

Thanks
Yumin


On 10/10/2012 1:01 PM, Nils Loodin wrote:
> Hi all!
>
> When looking to implement a feature where I wanted to do some 
> allocations without the vm calling vm_exit_no_memory() when not able 
> to allocate, I discovered this wasn't possible with ResourceObj-type 
> obects. (It was however implemented in CHeapObj-type objects.
>
> Here's a patch to implement that.
>
> Now we can use (for instance) jcmd on a running production vm without 
> fear that we will bring the vm down if the jcmd commands does allocations.
> (The commands themselves have to be implemented with this in mind though.)
>
> Webrev here:
> http://cr.openjdk.java.net/~nloodin/8000617/webrev.01/ 
> <http://cr.openjdk.java.net/%7Enloodin/8000617/webrev.01/>
>
> Regards,
> Nils Loodin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/attachments/20121010/b37d9b1d/attachment.html 


More information about the hotspot-runtime-dev mailing list