summaryrefslogtreecommitdiff
path: root/runtime/lambda/box_table.h
diff options
context:
space:
mode:
author Igor Murashkin <iam@google.com> 2015-07-23 16:53:53 -0700
committer Igor Murashkin <iam@google.com> 2015-07-30 14:36:01 -0700
commitfb326cffc679cab8eb873b9e44795706f023cb3c (patch)
tree7ad4b524299195c42d38a5e7ef01b7fdb4c30e86 /runtime/lambda/box_table.h
parent8433bb8a3120d064de97a692d98341d9bc29a985 (diff)
base: replace raw pointers for out-parameters with safer out<T>
Add a zero-cost type-safe abstraction for representing "out" parameters (i.e. when the calling function has to return multiple results out by-reference into the argument slots instead of using the return slot). Change-Id: I33a941e4863b6bed71d2bfa43d7f48e9b111f83f
Diffstat (limited to 'runtime/lambda/box_table.h')
-rw-r--r--runtime/lambda/box_table.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/lambda/box_table.h b/runtime/lambda/box_table.h
index 312d811b9b..c6d3d0c0fb 100644
--- a/runtime/lambda/box_table.h
+++ b/runtime/lambda/box_table.h
@@ -18,6 +18,7 @@
#include "base/allocator.h"
#include "base/hash_map.h"
+#include "base/out.h"
#include "gc_root.h"
#include "base/macros.h"
#include "base/mutex.h"
@@ -51,7 +52,7 @@ class BoxTable FINAL {
SHARED_REQUIRES(Locks::mutator_lock_) REQUIRES(!Locks::lambda_table_lock_);
// Unboxes an object back into the lambda. Returns false and throws an exception on failure.
- bool UnboxLambda(mirror::Object* object, ClosureType* out_closure)
+ bool UnboxLambda(mirror::Object* object, out<ClosureType> out_closure)
SHARED_REQUIRES(Locks::mutator_lock_);
// Sweep weak references to lambda boxes. Update the addresses if the objects have been