OSDN Git Service

ART: Use unique_ptr for alloca-ed ShadowFrames
authorAndreas Gampe <agampe@google.com>
Tue, 1 Sep 2015 21:45:00 +0000 (14:45 -0700)
committerAndreas Gampe <agampe@google.com>
Thu, 24 Sep 2015 22:42:14 +0000 (15:42 -0700)
commitb30259251b22430fad12f1adeab671e4bf8f88f5
tree80bff979beae84702b739962656a16d245a40ef4
parenteae0927cb81437389dc96437e9f04903783282b4
ART: Use unique_ptr for alloca-ed ShadowFrames

To enable automated calls of the destructor (for extensions of
ShadowFrame), return a unique_ptr with a custom deleter. Use a
macro so that the alloca happens in the caller.

Change-Id: Id28a6ea131f108e4a94ff1699fc22e7b44aec018
runtime/entrypoints/quick/quick_trampoline_entrypoints.cc
runtime/interpreter/interpreter.cc
runtime/interpreter/interpreter_common.cc
runtime/stack.h