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
958114da
Commit
958114da
authored
Mar 12, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Commenting
parent
8838884f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
vsm.c
bin/varnishd/vsm.c
+17
-1
No files found.
bin/varnishd/vsm.c
View file @
958114da
...
@@ -27,6 +27,22 @@
...
@@ -27,6 +27,22 @@
*
*
* VSM stuff common to manager and child.
* VSM stuff common to manager and child.
*
*
* We have three potential conflicts we need to lock against here:
*
* VSM-studying programs (varnishstat...) vs. everybody else
* The VSM studying programs only have read-only access to the VSM
* so everybody else must use memory barriers, stable storage and
* similar tricks to keep the VSM image in sync (long enough) for
* the studying programs.
*
* Manager process vs child process.
* Will only muck about in VSM when child process is not running
* Responsible for cleaning up any mess left behind by dying child.
*
* Child process threads
* Pthread locking necessary.
*
* XXX: not all of this is in place yet.
*/
*/
#include "config.h"
#include "config.h"
...
@@ -89,7 +105,7 @@ vsm_cleanup(void)
...
@@ -89,7 +105,7 @@ vsm_cleanup(void)
if
(
sha
==
NULL
)
if
(
sha
==
NULL
)
return
;
return
;
seq
=
vsm_mark
();
seq
=
vsm_mark
();
/* First pass, free, and collaps with next if applicable */
/* First pass, free, and collaps
e
with next if applicable */
VSM_ITER
(
sha
)
{
VSM_ITER
(
sha
)
{
if
(
strcmp
(
sha
->
class
,
VSM_CLASS_COOL
))
if
(
strcmp
(
sha
->
class
,
VSM_CLASS_COOL
))
continue
;
continue
;
...
...
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