/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
int state = VM_PURGABLE_NONVOLATILE;
kern_return_t ret = vm_purgable_control(mach_task_self(), (vm_address_t)mBuf,
VM_PURGABLE_SET_STATE, &state); return ret == KERN_SUCCESS && !(state & VM_PURGABLE_EMPTY);
}
MOZ_ASSERT(mLockCount > 0, "VolatileBuffer unlocked too many times!"); if (--mLockCount || OnHeap()) { return;
}
int state = VM_PURGABLE_VOLATILE | VM_VOLATILE_GROUP_DEFAULT;
DebugOnly<kern_return_t> ret = vm_purgable_control(
mach_task_self(), (vm_address_t)mBuf, VM_PURGABLE_SET_STATE, &state);
MOZ_ASSERT(ret == KERN_SUCCESS, "Failed to set buffer as purgable");
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.