Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
957509b3
Commit
957509b3
authored
Oct 31, 2022
by
David CARLIER
Committed by
Nils Goroll
Aug 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VRT_fail to be annoted with cold attribute as a codepath to be taken less likely
parent
13979086
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
vdef.h
include/vdef.h
+6
-0
vrt.h
include/vrt.h
+1
-1
No files found.
include/vdef.h
View file @
957509b3
...
@@ -241,6 +241,12 @@ int __llvm_gcov_flush(void);
...
@@ -241,6 +241,12 @@ int __llvm_gcov_flush(void);
# define v_unused_
# define v_unused_
#endif
#endif
#if __GNUC_PREREQ__(4, 3) || defined(__clang__)
# define v_cold_ __attribute__((cold))
#else
# define v_cold_
#endif
/* VTIM API overhaul WIP */
/* VTIM API overhaul WIP */
typedef
double
vtim_mono
;
typedef
double
vtim_mono
;
typedef
double
vtim_real
;
typedef
double
vtim_real
;
...
...
include/vrt.h
View file @
957509b3
...
@@ -678,7 +678,7 @@ VCL_VOID VRT_SetHdr(VRT_CTX, VCL_HEADER, const char *pfx, VCL_STRANDS);
...
@@ -678,7 +678,7 @@ VCL_VOID VRT_SetHdr(VRT_CTX, VCL_HEADER, const char *pfx, VCL_STRANDS);
VCL_VOID
VRT_handling
(
VRT_CTX
,
unsigned
hand
);
VCL_VOID
VRT_handling
(
VRT_CTX
,
unsigned
hand
);
unsigned
VRT_handled
(
VRT_CTX
);
unsigned
VRT_handled
(
VRT_CTX
);
VCL_VOID
VRT_trace
(
VRT_CTX
,
VCL_BOOL
);
VCL_VOID
VRT_trace
(
VRT_CTX
,
VCL_BOOL
);
VCL_VOID
VRT_fail
(
VRT_CTX
,
const
char
*
fmt
,
...)
v_printflike_
(
2
,
3
);
VCL_VOID
VRT_fail
(
VRT_CTX
,
const
char
*
fmt
,
...)
v_printflike_
(
2
,
3
)
v_cold_
;
VCL_VOID
VRT_hashdata
(
VRT_CTX
,
VCL_STRANDS
);
VCL_VOID
VRT_hashdata
(
VRT_CTX
,
VCL_STRANDS
);
VCL_VOID
VRT_Rollback
(
VRT_CTX
,
VCL_HTTP
);
VCL_VOID
VRT_Rollback
(
VRT_CTX
,
VCL_HTTP
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment