harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <g...@pobox.com>
Subject Re: [drlvm] stress.Mix / MegaSpawn threading bug
Date Wed, 10 Jan 2007 14:52:38 GMT

On Jan 10, 2007, at 8:51 AM, Gregory Shimansky wrote:

> Geir Magnusson Jr. wrote:
>> The big thing for me is ensuring that we can drive the VM to the  
>> limit, and it maintains internal integrity, so applications that  
>> are designed to gracefully deal with resource exhaustion can do so  
>> w/ confidence that the VM isn't about to crumble out from  
>> underneath them.
>
> I agree with Geir that we should try to handle out of C heap  
> condition gracefully. The problem is that there is no clearly  
> defined contract for many functions that use memory allocation  
> about what to do in case of out of memory condition.
>
> To maintain integrity all VM functions which allocate memory from C  
> heap should return gracefully all the way up the stack until they  
> hit Java code that called them and then OOME exception shall be  
> seen by the Java code. It is not an easy task because all code  
> paths should support it, including JIT and GC.
>

Agreed.  But certainly worth striving for :)

geir



Mime
View raw message