11e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapiro/* 21e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapiro * Copyright (C) 2010 The Android Open Source Project 31e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapiro * 41e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapiro * Licensed under the Apache License, Version 2.0 (the "License"); 51e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapiro * you may not use this file except in compliance with the License. 61e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapiro * You may obtain a copy of the License at 71e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapiro * 81e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapiro * http://www.apache.org/licenses/LICENSE-2.0 91e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapiro * 101e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapiro * Unless required by applicable law or agreed to in writing, software 111e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapiro * distributed under the License is distributed on an "AS IS" BASIS, 121e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapiro * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 131e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapiro * See the License for the specific language governing permissions and 141e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapiro * limitations under the License. 151e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapiro */ 161e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapiro 171e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapiro#ifndef _DALVIK_ALLOC_VERIFY 181e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapiro#define _DALVIK_ALLOC_VERIFY 191e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapiro 201e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapiro/* 211e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapiro * Verifies an object reference. 221e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapiro */ 231e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapirovoid dvmVerifyObject(const Object *obj); 241e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapiro 251e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapiro/* 26962adba4e5db286a36bc8024f5c023bcf6f29312Barry Hayes * Verifies the object references in a heap bitmap. Assumes the VM is 27962adba4e5db286a36bc8024f5c023bcf6f29312Barry Hayes * suspended. 281e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapiro */ 291e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapirovoid dvmVerifyBitmap(const HeapBitmap *bitmap); 301e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapiro 31f571825e42a0daa957b99f8cf7598f517b504fa3Carl Shapiro/* 32f571825e42a0daa957b99f8cf7598f517b504fa3Carl Shapiro * Verifies the contents of various global roots. 33f571825e42a0daa957b99f8cf7598f517b504fa3Carl Shapiro */ 34f571825e42a0daa957b99f8cf7598f517b504fa3Carl Shapirovoid dvmVerifyRoots(void); 35f571825e42a0daa957b99f8cf7598f517b504fa3Carl Shapiro 361e714bbd8230ac6fb9e3a8e9e25bca687132c82aCarl Shapiro#endif /* _DALVIK_ALLOC_VERIFY */ 37