]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: global/threads: move cpu_map at the end of the global struct
authorWilly Tarreau <w@1wt.eu>
Sat, 20 Jan 2018 17:12:15 +0000 (18:12 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 23 Jan 2018 14:27:52 +0000 (15:27 +0100)
The "thread" part is 32kB long, better move it at the end of the
structure since it's only used during initialization, to keep the
rest grouped together.

Should be backported to 1.8 to ease backporting of upcoming patches,
no functional impact.

include/types/global.h

index 1f332074bd2b8b8bf66c8e50f1e15ae32a8517fc..6f3fedc3364db1d7bf677af6871d5104b39bfe2e 100644 (file)
@@ -163,14 +163,14 @@ struct global {
                        mode_t mode;    /* 0 to leave unchanged */
                } ux;
        } unix_bind;
+       struct proxy *stats_fe;     /* the frontend holding the stats settings */
+       struct vars   vars;         /* list of variables for the process scope. */
 #ifdef USE_CPU_AFFINITY
        struct {
                unsigned long proc[LONGBITS];             /* list of CPU masks for the 32/64 first processes */
                unsigned long thread[LONGBITS][LONGBITS]; /* list of CPU masks for the 32/64 first threads per process */
        } cpu_map;
 #endif
-       struct proxy *stats_fe;     /* the frontend holding the stats settings */
-       struct vars   vars;         /* list of variables for the process scope. */
 };
 
 extern struct global global;