--- - branch: netbsd-8 date: Thu Nov 30 14:31:04 UTC 2017 files: - new: 1.4.2.1 old: '1.4' path: src/sys/kern/subr_localcount.c pathrev: src/sys/kern/subr_localcount.c@1.4.2.1 type: modified - new: 1.4.2.1 old: '1.4' path: src/sys/sys/localcount.h pathrev: src/sys/sys/localcount.h@1.4.2.1 type: modified id: 20171130T143104Z.11024f1b4e2a6d5a5939849c3757406ea9e55f5b log: "Pull up following revision(s) (requested by ozaki-r in ticket #404):\n\tsys/sys/localcount.h: revision 1.5\n\tsys/kern/subr_localcount.c: revision 1.7\nImplement a debugging facility (overflow/underflow detection) for localcount\nWe cannot get an accurate count from a localcount instance because it consists\nof per-cpu counters and we have no way to sum them up atomically. So we cannot\ndetect counter overflow/underflow as we can do on a normal refcount.\nThe facility adds an atomic counter to each localcount instance to enable the\nvalidations. The counter ups and downs in synchronization with the per-CPU\ncounters. The counter is used iff both DEBUG and LOCKDEBUG are enabled in the\nkernel.\nDiscussed on tech-kern@\n" module: src subject: 'CVS commit: [netbsd-8] src/sys' unixtime: '1512052264' user: martin