Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
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
Show 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