git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1537
d4fa192b-c00b-0410-8231-
f00ffab90ce4
SES_New(struct sockaddr *addr, unsigned len)
{
struct sessmem *sm;
- unsigned u;
-
+ volatile unsigned u;
/*
* One of the two queues is unlocked because only one
} else {
/*
* If that fails, alloc new one.
+ *
+ * It is not necessary to lock mem_workspace, but we
+ * need to cache it locally, to make sure we get a
+ * consistent view of it.
*/
u = params->mem_workspace;
sm = malloc(sizeof *sm + u);