[sgen] Don't return a pointer from the out-of-memory function.
authorMark Probst <mark.probst@gmail.com>
Fri, 9 Jan 2015 21:43:46 +0000 (13:43 -0800)
committerMark Probst <mark.probst@gmail.com>
Wed, 29 Apr 2015 18:00:07 +0000 (11:00 -0700)
commit67c74d10cf03e61a243e3f8caa5cc21ab54a262c
tree231c575813330e019ab52ffe90395e1417e039e2
parent80b5c9cdc375fc0a7d589459c5790761d2f74875
[sgen] Don't return a pointer from the out-of-memory function.

The pointer the function would have to return would be to a chunk of managed
memory, for the object to be allocated.  It can't do that because it is not in charge
of the managed heap.  The best it could do would be to free some unmanaged
memory and tell the allocator try again.
mono/metadata/sgen-alloc.c
mono/metadata/sgen-client.h
mono/metadata/sgen-mono.c