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
8d695d8d
Unverified
Commit
8d695d8d
authored
Jul 05, 2024
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fellow_cache_test: extend t_budyobj for varying ldsegs
parent
87362008
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
fellow_cache.c
src/fellow_cache.c
+3
-3
No files found.
src/fellow_cache.c
View file @
8d695d8d
...
...
@@ -7012,7 +7012,7 @@ t_lcb(struct fellow_cache *fc)
#define PP(x) (void *)(uintptr_t)(x)
// test concurrent iter while filling object
static void
t_busyobj
(
unsigned
chksum
,
struct
fellow_cache
*
fc
)
t_busyobj(unsigned chksum, struct fellow_cache *fc
, uint16_t limit_ldsegs
)
{
unsigned char h1[SHA256_LEN], h2[SHA256_LEN];
struct fellow_cache_obj *fco;
...
...
@@ -7049,7 +7049,7 @@ t_busyobj(unsigned chksum, struct fellow_cache *fc)
DBG("concurrent test_iter thread %p", PP(iter_thr->thr));
u = fco->fcsl->fdsl->lsegs + 72 * 2;
XXX_LIMIT_LDSEGS
=
1
;
XXX_LIMIT_LDSEGS =
limit_ldsegs
;
while (u-- > 0) {
void *p;
sz = 1234;
...
...
@@ -7361,7 +7361,7 @@ t_cache(const char *fn, unsigned chksum)
test_fellow_cache_unbusy_inject(fc);
for (u = 0; u < 100; u++)
t_busyobj
(
chksum
,
fc
);
t_busyobj(chksum, fc
, u
);
// === alloc, then evict
VSHA256_Init(&sha256ctx);
...
...
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