2004-08-20 Zoltan Varga <vargaz@freemail.hu>
authorZoltan Varga <vargaz@gmail.com>
Fri, 20 Aug 2004 15:02:23 +0000 (15:02 -0000)
committerZoltan Varga <vargaz@gmail.com>
Fri, 20 Aug 2004 15:02:23 +0000 (15:02 -0000)
commita0dfb37ca14f2d8ffaf9616c87fdacf8e1639229
tree3cc7e60b0d196db6fac1c6f49ad4e5e4a56328d6
parentcd890c5e9b51e3da52359ed0df4d0847e5880051
2004-08-20  Zoltan Varga  <vargaz@freemail.hu>

* gc-internal.h gc.c: Add mono_gc_out_of_memory () function. Register
this function with Boehm as the oom handler, so we don't have to check
the result of GC_malloc.

* object.c: Remove checks for oom.

* object.h object.c (mono_class_get_allocation_ftn): New function to
return the icall which can be used to allocate an instance of a given
class.

* object.c: Handle common allocation requests using GC_gcj_fast_malloc.

* class-internals.h: Add 'enabled' field.

svn path=/trunk/mono/; revision=32579
mono/metadata/ChangeLog
mono/metadata/class-internals.h
mono/metadata/gc-internal.h
mono/metadata/gc.c
mono/metadata/object.c
mono/metadata/object.h