Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
varnishevent
Commits
12cf0228
Commit
12cf0228
authored
Sep 15, 2015
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add memory barriers before evaluating RDR_Depleted()
parent
42b61b35
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
varnishevent.c
src/varnishevent.c
+1
-0
writer.c
src/writer.c
+1
-0
No files found.
src/varnishevent.c
View file @
12cf0228
...
...
@@ -145,6 +145,7 @@ RDR_Stats(void)
int
RDR_Depleted
(
void
)
{
VWMB
();
return
(
rdr_tx_free
<
tx_thresh
)
||
(
rdr_rec_free
<
rec_thresh
)
||
(
rdr_chunk_free
<
chunk_thresh
);
}
...
...
src/writer.c
View file @
12cf0228
...
...
@@ -250,6 +250,7 @@ wrt_write(tx_t *tx)
assert
(
tx
->
state
==
TX_FREE
);
VRMB
();
if
(
RDR_Depleted
()
||
wrt_nfree_tx
>
tx_thresh
||
wrt_nfree_recs
>
rec_thresh
||
wrt_nfree_chunks
>
chunk_thresh
)
wrt_return_freelist
();
...
...
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