It's BSS zero initialized.
Showing the changes to lib/debugobjects.c (1 of 1 file). Show all
Unified · Split
| @@ -1364,20 +1364,11 @@ free: · 1363 unmodified lines | |||
| 1364 | void __init debug_objects_mem_init(void) | 1364 | void __init debug_objects_mem_init(void) |
| 1365 | { | 1365 | { |
| 1366 | struct kmem_cache *cache; | 1366 | struct kmem_cache *cache; |
| 1367 | int cpu, extras; | 1367 | int extras; |
| 1368 | 1368 | ||
| 1369 | if (!debug_objects_enabled) | 1369 | if (!debug_objects_enabled) |
| 1370 | return; | 1370 | return; |
| 1371 | 1371 | ||
| 1372 | /* | ||
| 1373 | * Initialize the percpu object pools | ||
| 1374 | * | ||
| 1375 | * Initialization is not strictly necessary, but was done for | ||
| 1376 | * completeness. | ||
| 1377 | */ | ||
| 1378 | for_each_possible_cpu(cpu) | ||
| 1379 | INIT_HLIST_HEAD(&per_cpu(percpu_obj_pool.free_objs, cpu)); | ||
| 1380 | |||
| 1381 | if (!debug_objects_selftest()) | 1372 | if (!debug_objects_selftest()) |
| 1382 | return; | 1373 | return; |
| 1383 | 1374 | ||