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
3e1ad1a1
Commit
3e1ad1a1
authored
May 04, 2020
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws: Polish workspace snapshot
parent
789ccc4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cache_ws.c
bin/varnishd/cache/cache_ws.c
+3
-3
No files found.
bin/varnishd/cache/cache_ws.c
View file @
3e1ad1a1
...
...
@@ -38,7 +38,7 @@
#define WS_REDZONE_END '\x15'
static
const
void
*
const
snap_overflowed
=
&
snap_overflowed
;
static
const
uintptr_t
snap_overflowed
=
(
uintptr_t
)
&
snap_overflowed
;
void
WS_Assert
(
const
struct
ws
*
ws
)
...
...
@@ -146,7 +146,7 @@ WS_Reset(struct ws *ws, uintptr_t pp)
WS_Assert
(
ws
);
AN
(
pp
);
if
(
pp
==
(
uintptr_t
)
snap_overflowed
)
{
if
(
pp
==
snap_overflowed
)
{
DSL
(
DBG_WORKSPACE
,
0
,
"WS_Reset(%p, overflowed)"
,
ws
);
AN
(
WS_Overflowed
(
ws
));
return
;
...
...
@@ -254,7 +254,7 @@ WS_Snapshot(struct ws *ws)
assert
(
ws
->
r
==
NULL
);
if
(
WS_Overflowed
(
ws
))
{
DSL
(
DBG_WORKSPACE
,
0
,
"WS_Snapshot(%p) = overflowed"
,
ws
);
return
(
(
uintptr_t
)
snap_overflowed
);
return
(
snap_overflowed
);
}
DSL
(
DBG_WORKSPACE
,
0
,
"WS_Snapshot(%p) = %p"
,
ws
,
ws
->
f
);
return
((
uintptr_t
)
ws
->
f
);
...
...
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