Commit 957509b3 authored by David CARLIER's avatar David CARLIER Committed by Nils Goroll

VRT_fail to be annoted with cold attribute as a codepath to be taken less likely

parent 13979086
......@@ -241,6 +241,12 @@ int __llvm_gcov_flush(void);
# define v_unused_
#endif
#if __GNUC_PREREQ__(4, 3) || defined(__clang__)
# define v_cold_ __attribute__((cold))
#else
# define v_cold_
#endif
/* VTIM API overhaul WIP */
typedef double vtim_mono;
typedef double vtim_real;
......
......@@ -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);
unsigned VRT_handled(VRT_CTX);
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_Rollback(VRT_CTX, VCL_HTTP);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment