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
cab6375c
Commit
cab6375c
authored
Apr 23, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extra asserts to try to catch a weird panic on tinderbox::osx
parent
017ba98d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
cache_pool.c
bin/varnishd/cache/cache_pool.c
+4
-0
No files found.
bin/varnishd/cache/cache_pool.c
View file @
cab6375c
...
...
@@ -194,6 +194,7 @@ pool_accept(struct worker *wrk, void *arg)
return
;
}
VTAILQ_REMOVE
(
&
pp
->
idle_queue
,
&
wrk2
->
task
,
list
);
AZ
(
wrk2
->
task
.
func
);
Lck_Unlock
(
&
pp
->
mtx
);
assert
(
sizeof
*
wa2
==
WS_Reserve
(
wrk2
->
aws
,
sizeof
*
wa2
));
wa2
=
(
void
*
)
wrk2
->
aws
->
f
;
...
...
@@ -227,6 +228,7 @@ Pool_Task(struct pool *pp, struct pool_task *task, enum pool_how how)
wrk
=
pool_getidleworker
(
pp
,
0
);
if
(
wrk
!=
NULL
)
{
VTAILQ_REMOVE
(
&
pp
->
idle_queue
,
&
wrk
->
task
,
list
);
AZ
(
wrk
->
task
.
func
);
Lck_Unlock
(
&
pp
->
mtx
);
wrk
->
task
.
func
=
task
->
func
;
wrk
->
task
.
priv
=
task
->
priv
;
...
...
@@ -298,6 +300,7 @@ Pool_Work_Thread(void *priv, struct worker *wrk)
wrk
->
lastused
=
VTIM_real
();
wrk
->
task
.
func
=
NULL
;
wrk
->
task
.
priv
=
wrk
;
AZ
(
wrk
->
task
.
func
);
VTAILQ_INSERT_HEAD
(
&
pp
->
idle_queue
,
&
wrk
->
task
,
list
);
if
(
!
stats_clean
)
WRK_SumStat
(
wrk
);
...
...
@@ -427,6 +430,7 @@ pool_herder(void *priv)
if
(
wrk
!=
NULL
&&
(
wrk
->
lastused
<
t_idle
||
pp
->
nthr
>
cache_param
->
wthread_max
))
{
VTAILQ_REMOVE
(
&
pp
->
idle_queue
,
&
wrk
->
task
,
list
);
AZ
(
wrk
->
task
.
func
);
}
else
wrk
=
NULL
;
Lck_Unlock
(
&
pp
->
mtx
);
...
...
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