SVNews r327409

NOTE: This service is experimental and subject to change! Use at your own risk!

2017-12-31 03:35:34 - r327409 by mjg (Mateusz Guzik)

Complete list of files affected by revision r327409:

(Note: At the moment, these links point to ViewVC on svn.freebsd.org. They are probably slow. Do not overuse.)

   Contents     MODIFY   /stable/11  
  History   Contents   Diff   MODIFY   /stable/11/sys/conf/ldscript.amd64  
  History   Contents   Diff   MODIFY   /stable/11/sys/kern/kern_dtrace.c  
  History   Contents   Diff   MODIFY   /stable/11/sys/kern/kern_lockstat.c  
  History   Contents   Diff   MODIFY   /stable/11/sys/kern/kern_mutex.c  
  History   Contents   Diff   MODIFY   /stable/11/sys/kern/kern_rwlock.c  
  History   Contents   Diff   MODIFY   /stable/11/sys/kern/kern_sx.c  
  History   Contents   Diff   MODIFY   /stable/11/sys/kern/subr_kdb.c  
  History   Contents   Diff   MODIFY   /stable/11/sys/security/audit/audit.c  
  History   Contents   Diff   MODIFY   /stable/11/sys/sys/kdb.h  
  History   Contents   Diff   MODIFY   /stable/11/sys/sys/systm.h  

Commit message:

MFC r323235,r323236,r324789,r324863:

  Introduce __read_frequently

  While __read_mostly groups variables together, their placement is not
  specified. In particular 2 frequently used variables can end up in
  different lines.

  This annotation is only expected to be used for variables read all the time,
  e.g. on each syscall entry.

=============

  Sprinkle __read_frequently on few obvious places.

  Note that some of annotated variables should probably change their types
  to something smaller, preferably bit-sized.

=============

  Mark kdb_active as __read_frequently and switch to bool to eat less space.

=============

  Change kdb_active type to u_char.

  Fixes warnings from gcc and keeps the small size. Perhaps nesting should be
moved
  to another variablle.

 


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 31 ms, 11 files printed. Current time is 2018-01-19 09:35:35. All times are in UTC/GMT.