diff options
Diffstat (limited to 'runtime/arch/context.cc')
-rw-r--r-- | runtime/arch/context.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/arch/context.cc b/runtime/arch/context.cc index f5ec06d269..1d69691619 100644 --- a/runtime/arch/context.cc +++ b/runtime/arch/context.cc @@ -25,6 +25,8 @@ Context* Context::Create() { extern "C" void artContextCopyForLongJump(Context* context, uintptr_t* gprs, uintptr_t* fprs) { context->CopyContextTo(gprs, fprs); // Once the context has been copied, it is no longer needed. + // The context pointer is passed via hand-written assembly stubs, otherwise we'd take the + // context argument as a `std::unique_ptr<>` to indicate the ownership handover. delete context; } |