summaryrefslogtreecommitdiffstats
path: root/vm/alloc/HeapTable.h
diff options
context:
space:
mode:
authorCarl Shapiro <cshapiro@google.com>2011-03-30 19:35:34 -0700
committerCarl Shapiro <cshapiro@google.com>2011-03-30 19:53:34 -0700
commitce87bfed41bbe4248b2770fb1a90f34b2518f6fa (patch)
tree8a2ca573187d322f7202df68d36a1101294f5ee5 /vm/alloc/HeapTable.h
parent6920d2c5b83f8ff0cdc8f33770cd658969dbd262 (diff)
downloadandroid_dalvik-ce87bfed41bbe4248b2770fb1a90f34b2518f6fa.tar.gz
android_dalvik-ce87bfed41bbe4248b2770fb1a90f34b2518f6fa.tar.bz2
android_dalvik-ce87bfed41bbe4248b2770fb1a90f34b2518f6fa.zip
Delegate the queuing of cleared references to managed code.
Previously, the garbage collector would pass each cleared reference to the heap worker thread for queuing. The heap worker thread would then perform a callback into managed code for each cleared reference which assigned the reference to its reference queue. With this change, the garbage collector instead links together all of the cleared references and calls back into managed code exactly once to hand off the references for processing. This change makes the heap worker thread and its data structures obsolete. Change-Id: I28e02638f0877a7fd2ac96b9c3f5597a38541ebb
Diffstat (limited to 'vm/alloc/HeapTable.h')
-rw-r--r--vm/alloc/HeapTable.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/vm/alloc/HeapTable.h b/vm/alloc/HeapTable.h
deleted file mode 100644
index 175111df1..000000000
--- a/vm/alloc/HeapTable.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright (C) 2008 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-#ifndef _DALVIK_ALLOC_HEAP_TABLE
-#define _DALVIK_ALLOC_HEAP_TABLE
-
-#include "ReferenceTable.h"
-
-struct LargeHeapRefTable {
- struct LargeHeapRefTable *next;
- ReferenceTable refs;
-};
-
-typedef struct LargeHeapRefTable LargeHeapRefTable;
-
-bool dvmHeapInitHeapRefTable(ReferenceTable *refs);
-void dvmHeapFreeLargeTable(LargeHeapRefTable *table);
-bool dvmHeapAddRefToLargeTable(LargeHeapRefTable **tableP, Object *ref);
-void dvmHeapMarkLargeTableRefs(LargeHeapRefTable *table);
-bool dvmHeapAddTableToLargeTable(LargeHeapRefTable **tableP,
- ReferenceTable *refs);
-Object *dvmHeapGetNextObjectFromLargeTable(LargeHeapRefTable **pTable);
-
-#endif // _DALVIK_ALLOC_HEAP_TABLE