Value types - compatibility with existing “value objects”

David M. Lloyd david.lloyd at redhat.com
Fri Jan 9 14:10:02 UTC 2015


On 01/09/2015 08:01 AM, Simon Ochsenreither wrote:
>> Worth mentioning that SOE is infinitely more recoverable than heap OOME.
>>   In the latter case (especially with complex systems, where the risk is
>> ironically even higher of it happening) there's often not much you can
>> do other than kill off the JVM and try again.  But if you run out of
>> stack, everything should unwind in a very predictable (and fast) manner.
>>   You could even automatically rebuild your thread pools with larger
>> stack sizes fairly easily.
>
> Your VM might be broken after both. SOE is definitely not recoverable.
> Yes, it might work, but no guarantees it does.
>
> Money quote: "You will find occurrences of StackOverflowError leaving
> locks locked, monitors acquired, and "finally" block not invoked, even
> if JVM doesn't crash."

Well, if this is true then most of my assumptions are plain wrong. 
Also, that would really be awful. :-)

-- 
- DML



More information about the valhalla-dev mailing list