summaryrefslogtreecommitdiffstats
path: root/sys/dev/uart/uart_dev_lpc.c
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2015-08-14 09:39:23 +0000
committermav <mav@FreeBSD.org>2015-08-14 09:39:23 +0000
commit3cc7e59c98c7cc13260aa495a033595c744cbafb (patch)
tree85fd3d65ca4da1c77cd3809beaf0d06be507062c /sys/dev/uart/uart_dev_lpc.c
parent14f3f345285922d562a078398cfc4381097986bd (diff)
downloadFreeBSD-src-3cc7e59c98c7cc13260aa495a033595c744cbafb.zip
FreeBSD-src-3cc7e59c98c7cc13260aa495a033595c744cbafb.tar.gz
MFV r286765: 5817 change type of arcs_size from uint64_t to refcount_t
Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Paul Dagnelie <paul.dagnelie@delphix.com> Reviewed by: Adam Leventhal <ahl@delphix.com> Reviewed by: Alex Reece <alex@delphix.com> Reviewed by: Richard Elling <richard.elling@richardelling.com> Approved by: Garrett D'Amore <garrett@damore.org> Author: Prakash Surya <prakash.surya@delphix.com> illumos/illumos-gate@2fd872a734cf486007a8dba532cec52bfb4d40e5 As a way to make it more difficult to introduce bugs into the ARC, and to make it easier to diagnose issues when bugs do creep in, it would be beneficial to change the type of the arc_state_t's arcs_size field to be a refcount_t instead of a uint64_t. This would allow us to make stricter checks when incrementing and decrementing the value with debugging enabled, but still fallback to simple, fast atomic operations when debugging is disabled.
Diffstat (limited to 'sys/dev/uart/uart_dev_lpc.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud