Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
slash
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
slash
Commits
bc73dbc1
Unverified
Commit
bc73dbc1
authored
Jun 04, 2024
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generic cast to %p
cast to pointer from integer of different size seen on smartos
parent
2623159e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
fellow_cache.c
src/fellow_cache.c
+4
-2
No files found.
src/fellow_cache.c
View file @
bc73dbc1
...
...
@@ -7012,6 +7012,8 @@ t_lcb(struct fellow_cache *fc)
DBG("done %s","---");
}
// generic cast to %p
#define PP(x) (void *)(uintptr_t)(x)
// test concurrent iter while filling object
static void
t_busyobj(unsigned chksum, struct fellow_cache *fc)
...
...
@@ -7048,7 +7050,7 @@ t_busyobj(unsigned chksum, struct fellow_cache *fc)
AZ(pthread_create(&iter_thr->thr, NULL,
test_fellow_cache_obj_iter_thread_f, iter_thr));
DBG
(
"concurrent test_iter thread %p"
,
(
void
*
)
iter_thr
->
thr
);
DBG("concurrent test_iter thread %p",
PP(iter_thr->thr)
);
u = fco->fcsl->fdsl->lsegs + 72 * 2;
XXX_LIMIT_LDSEGS = 1;
...
...
@@ -7087,7 +7089,7 @@ t_busyobj(unsigned chksum, struct fellow_cache *fc)
priv2 = fco->fdb.fdb;
// check thread status
DBG
(
"concurrent test_iter thread join %p"
,
(
void
*
)
iter_thr
->
thr
);
DBG("concurrent test_iter thread join %p",
PP(iter_thr->thr)
);
AZ(pthread_join(iter_thr->thr, NULL));
VSHA256_Final(h2, &thr_sha256);
AZ(memcmp(h1, h2, sizeof *h1));
...
...
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