summaryrefslogtreecommitdiff
path: root/src/stack.cc
diff options
context:
space:
mode:
author Ian Rogers <irogers@google.com> 2012-09-27 16:03:43 -0700
committer Ian Rogers <irogers@google.com> 2012-09-27 17:19:25 -0700
commit81d425b0b232962441616f8b14f73620bffef5e5 (patch)
treecd1e46656269acf20e78817d675e56d9b9133e6c /src/stack.cc
parentbfaf917edbb1de8d158c3615e0da8ac3143d10c8 (diff)
Pass self to lock methods.
This avoids frequent recomputation of Thread::Current/pthread_getspecific. Also add a futex based reader/writer mutex that is disabled. Change-Id: I118fdb99ef1d1c4bfda6446ba3a0d8b6ab31eaee
Diffstat (limited to 'src/stack.cc')
-rw-r--r--src/stack.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/stack.cc b/src/stack.cc
index 2567c50568..7ec57b41b2 100644
--- a/src/stack.cc
+++ b/src/stack.cc
@@ -24,21 +24,6 @@
namespace art {
-void ManagedStack::PushManagedStackFragment(ManagedStack* fragment) {
- // Copy this top fragment into given fragment.
- memcpy(fragment, this, sizeof(ManagedStack));
- // Clear this fragment, which has become the top.
- memset(this, 0, sizeof(ManagedStack));
- // Link our top fragment onto the given fragment.
- link_ = fragment;
-}
-
-void ManagedStack::PopManagedStackFragment(const ManagedStack& fragment) {
- DCHECK(&fragment == link_);
- // Copy this given fragment back to the top.
- memcpy(this, &fragment, sizeof(ManagedStack));
-}
-
size_t ManagedStack::NumShadowFrameReferences() const {
size_t count = 0;
for (const ManagedStack* current_fragment = this; current_fragment != NULL;