• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/osfmk/vm/

Lines Matching refs:object

327 	 * object is ripe to be purged. It is not purged immediately, because that
383 * grab any ripe object and purge it obsolete queue first. then, go through
386 * 1. Look at queue. Is there an object?
388 * No - check other queue. Is there an object?
487 /* Find an object that can be locked. Returns locked object. */
497 vm_object_t object;
498 for (object = (vm_object_t) queue_first(&queue->objq[group]);
499 !queue_end(&queue->objq[group], (queue_entry_t) object);
500 object = (vm_object_t) queue_next(&object->objq)) {
501 if (vm_object_lock_try(object)) {
503 queue_remove(&queue->objq[group], object,
505 object->objq.next = 0;
506 object->objq.prev = 0;
510 return object;
522 vm_object_t object = 0;
532 * find an object to purge there
540 * we find an object in that group, try to lock it (this can
542 * lock, remove a token and then purge the object.
546 (object = vm_purgeable_object_find_and_lock(queue, group))) {
559 (object = vm_purgeable_object_find_and_lock(queue2, group))) {
570 * we could end up with no object to purge at this time, even though
578 assert(object);
579 (void) vm_object_purge(object);
580 vm_object_unlock(object);
583 (unsigned int) object, /* purged object */
591 vm_purgeable_object_add(vm_object_t object, purgeable_q_t queue, int group)
599 queue_enter(&queue->objq[group], object, vm_object_t, objq); /* last to die */
601 queue_enter_first(&queue->objq[group], object, vm_object_t, objq); /* first to die */
616 /* Look for object. If found, remove from purgeable queue. */
618 vm_purgeable_object_remove(vm_object_t object)
631 if (o == object) {
632 queue_remove(&queue->objq[group], object,
644 object->objq.next = 0;
645 object->objq.prev = 0;