* Fills an item with predictable garbage * * Complies with standard dtor arg/return * */
| 97 | * |
| 98 | */ |
| 99 | void |
| 100 | trash_dtor(void *mem, int size, void *arg) |
| 101 | { |
| 102 | int cnt; |
| 103 | uint32_t *p; |
| 104 | |
| 105 | #ifdef DEBUG_MEMGUARD |
| 106 | if (is_memguard_addr(mem)) |
| 107 | return; |
| 108 | #endif |
| 109 | |
| 110 | cnt = size / sizeof(uma_junk); |
| 111 | |
| 112 | for (p = mem; cnt > 0; cnt--, p++) |
| 113 | *p = uma_junk; |
| 114 | } |
| 115 | |
| 116 | /* |
| 117 | * Fills an item with predictable garbage |
no test coverage detected