15c99d639SIngo Weinhold /* 2*f8154d17SIngo Weinhold * Copyright 2008-2011, Ingo Weinhold, ingo_weinhold@gmx.de. 35c99d639SIngo Weinhold * Distributed under the terms of the MIT License. 45c99d639SIngo Weinhold */ 55c99d639SIngo Weinhold 66e83a6faSIngo Weinhold 75c99d639SIngo Weinhold #include "VMNullCache.h" 85c99d639SIngo Weinhold 9*f8154d17SIngo Weinhold #include <slab/Slab.h> 10*f8154d17SIngo Weinhold 115c99d639SIngo Weinhold 125c99d639SIngo Weinhold status_t Init(uint32 allocationFlags)13deee8524SIngo WeinholdVMNullCache::Init(uint32 allocationFlags) 145c99d639SIngo Weinhold { 15deee8524SIngo Weinhold return VMCache::Init(CACHE_TYPE_NULL, allocationFlags); 165c99d639SIngo Weinhold } 17*f8154d17SIngo Weinhold 18*f8154d17SIngo Weinhold 19*f8154d17SIngo Weinhold void DeleteObject()20*f8154d17SIngo WeinholdVMNullCache::DeleteObject() 21*f8154d17SIngo Weinhold { 22*f8154d17SIngo Weinhold object_cache_delete(gNullCacheObjectCache, this); 23*f8154d17SIngo Weinhold } 24*f8154d17SIngo Weinhold 25