OSDN Git Service

Fix OOM throwing if it happens in finalizer reference
authorDmitry Petrochenko <dmitry.petrochenko@intel.com>
Wed, 1 Oct 2014 06:31:58 +0000 (13:31 +0700)
committerDmitry Petrochenko <dmitry.petrochenko@intel.com>
Thu, 2 Oct 2014 05:06:38 +0000 (12:06 +0700)
commit6d7729d6ae8b2ac3800e92092d61390ce4e3b6d7
tree6952c8a01e0b071b404a78b91fc536b89a22930c
parent8283e079a209e81caafd123a12a525922368fd34
Fix OOM throwing if it happens in finalizer reference

The Class::Alloc should return null if OOM happened during
adding finalizer reference, even if finalizable object is
allocated succesfully.

Change-Id: I66c1cdda50228bf1302839785ce4d4889b676f5b
Signed-off-by: Dmitry Petrochenko <dmitry.petrochenko@intel.com>
Signed-off-by: Serguei Katkov <serguei.i.katkov@intel.com>
runtime/mirror/class-inl.h
test/080-oom-throw/src/Main.java