path: root/cddl/contrib/opensolaris/cmd/dtrace/dtrace.c
diff options
authorMark Johnston <markj@FreeBSD.org>2019-11-18 18:25:51 +0000
committerMark Johnston <markj@FreeBSD.org>2019-11-18 18:25:51 +0000
commitfe6d5344c248e4be5e806f25e4d7facfcd1bb2ed (patch)
treeb07d7945293620bd4335ff125e1c7ebbbfacb1c1 /cddl/contrib/opensolaris/cmd/dtrace/dtrace.c
parent3a2ba9974d5bda92d34ba09c10d4253c4fd535fb (diff)
Group per-domain reservation data in the same structure.
We currently have the per-domain partially populated reservation queues and the per-domain queue locks. Define a new per-domain padded structure to contain both of them. This puts the queue fields and lock in the same cache line and avoids the false sharing within the old queue array. Also fix field packing in the reservation structure. In many places we assume that a domain index fits in 8 bits, so we can do the same there as well. This reduces the size of the structure by 8 bytes. Update some comments while here. No functional change intended. Reviewed by: dougm, kib MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D22391
Notes: svn path=/head/; revision=354821
Diffstat (limited to 'cddl/contrib/opensolaris/cmd/dtrace/dtrace.c')
0 files changed, 0 insertions, 0 deletions