void OSDictionary::free() { flushCollection(); if (dictionary) { kfree((vm_offset_t)dictionary, capacity * sizeof(dictEntry)); ACCUMSIZE( -(capacity * sizeof(dictEntry)) ); } super::free(); }
void OSDictionary::free() { (void) super::setOptions(0, kImmutable); flushCollection(); if (dictionary) { kfree(dictionary, capacity * sizeof(dictEntry)); OSCONTAINER_ACCUMSIZE( -(capacity * sizeof(dictEntry)) ); } super::free(); }
void OSOrderedSet::free() { flushCollection(); if (array) { kfree((vm_offset_t)array, sizeof(_Element) * capacity); ACCUMSIZE( -(sizeof(_Element) * capacity) ); } super::free(); }
void OSOrderedSet::free() { (void) super::setOptions(0, kImmutable); flushCollection(); if (array) { kfree(array, sizeof(_Element) * capacity); ACCUMSIZE( -(sizeof(_Element) * capacity) ); } super::free(); }
void OSArray::free() { // Clear immutability - assumes the container is doing the right thing (void) super::setOptions(0, kImmutable); flushCollection(); if (array) { kfree(array, sizeof(const OSMetaClassBase *) * capacity); OSCONTAINER_ACCUMSIZE( -(sizeof(const OSMetaClassBase *) * capacity) ); } super::free(); }