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

Nils Loodin nils.loodin at oracle.com
Wed Oct 10 13:01:35 PDT 2012


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/

Regards,
Nils Loodin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/attachments/20121010/38bebf0f/attachment.html 


More information about the hotspot-runtime-dev mailing list