blob: 175111df181e33078479d8aa1c1b284b36b0fcb2 [file] [log] [blame]
The Android Open Source Projectf6c38712009-03-03 19:28:47 -08001/*
2 * Copyright (C) 2008 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16#ifndef _DALVIK_ALLOC_HEAP_TABLE
17#define _DALVIK_ALLOC_HEAP_TABLE
18
19#include "ReferenceTable.h"
20
The Android Open Source Projectf6c38712009-03-03 19:28:47 -080021struct LargeHeapRefTable {
Carl Shapiro9b748c62010-12-14 14:19:12 -080022 struct LargeHeapRefTable *next;
23 ReferenceTable refs;
The Android Open Source Projectf6c38712009-03-03 19:28:47 -080024};
25
Carl Shapiro9b748c62010-12-14 14:19:12 -080026typedef struct LargeHeapRefTable LargeHeapRefTable;
27
28bool dvmHeapInitHeapRefTable(ReferenceTable *refs);
The Android Open Source Projectf6c38712009-03-03 19:28:47 -080029void dvmHeapFreeLargeTable(LargeHeapRefTable *table);
The Android Open Source Projectf6c38712009-03-03 19:28:47 -080030bool dvmHeapAddRefToLargeTable(LargeHeapRefTable **tableP, Object *ref);
Carl Shapiro646ba092010-06-10 15:17:00 -070031void dvmHeapMarkLargeTableRefs(LargeHeapRefTable *table);
The Android Open Source Projectf6c38712009-03-03 19:28:47 -080032bool dvmHeapAddTableToLargeTable(LargeHeapRefTable **tableP,
Carl Shapiro9b748c62010-12-14 14:19:12 -080033 ReferenceTable *refs);
The Android Open Source Projectf6c38712009-03-03 19:28:47 -080034Object *dvmHeapGetNextObjectFromLargeTable(LargeHeapRefTable **pTable);
35
The Android Open Source Projectf6c38712009-03-03 19:28:47 -080036#endif // _DALVIK_ALLOC_HEAP_TABLE