Lines Matching refs:memory

62  *	Zone-based memory allocator.  A zone is a collection of fixed size
113 * (3) Poison the freed memory by overwriting it with 0xdeadbeef, and check it when the
114 * memory is being reused to make sure it is still poisoned.
164 /* should we run checks on this piece of memory? */
272 * map. When an individual zone needs more storage, memory is allocated
339 * The VM system gives us an initial chunk of memory.
459 * memory configurations. The default value is 4000 records.
607 vm_size_t za_size; /* how much memory did this allocation take up? */
779 * If we fail to allocate memory, don't further tax
812 * The refcount is incremented by the amount of memory the allocation consumes.
934 panic("Freeing as size %lu memory that was allocated with size %lu\n",
1085 vm_size_t max, /* maximum memory to use */
1229 * We got the memory for the log. Zero it out since the code needs this to identify unused records.
1237 printf("zone: couldn't allocate memory for zrecords, turning off zleak logging\n");
1328 * Cram the given memory into the specified zone.
1367 * Steal memory for the zone package. Called from
1376 /* Request enough early memory to get to the pmap zone */
1383 * Fill a zone with enough memory to contain at least nelem elements.
1386 * be more than the caller asked for since the memory allocation is
1396 vm_offset_t memory;
1404 kr = kmem_alloc_kobject(kernel_map, &memory, size);
1409 zcram(zone, memory, size);
1417 * Initialize the "zone of zones" which uses fixed memory allocated
1418 * earlier in memory initialization. zone_bootstrap is called
1475 * This prevents accidentally hogging too much kernel memory and making the system
1725 * Someone is allocating memory for this zone.
1756 * memory back, assuming there's no
2083 /* Keep this FALSE by default. Large memory machine run orders of magnitude
2127 panic("zfree: non-allocated memory in collectable zone!");
2242 * If elements have one or more pages, and memory is low,
2327 * were never zalloc'd/zget'd. The correct way to stuff memory
2590 * begins to run out of memory.