Skip to content

Commit

Permalink
Merge pull request #230 from insertinterestingnamehere/adjust_sizes
Browse files Browse the repository at this point in the history
Adjust Stack And Test Problem Sizes
  • Loading branch information
insertinterestingnamehere authored Feb 6, 2024
2 parents 3f4d01a + 325c959 commit b1171cb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ jobs:
CFLAGS: "-fsanitize=${{ matrix.sanitizer }} -fno-sanitize-recover=all"
CXXFLAGS: ${{ matrix.use_libcxx && format('-stdlib=libc++ -fsanitize={0} -fno-sanitize-recover=all', matrix.sanitizer) || format('-fsanitize={0} -fno-sanitize-recover=all', matrix.sanitizer) }}
LDFLAGS: "-fsanitize=${{ matrix.sanitizer }} -fno-sanitize-recover=all"
QTHREAD_STACK_SIZE: 32768
QTHREAD_STACK_SIZE: 2097152
ASAN_OPTIONS: "check_initialization_order=1"
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion test/basics/qthread_stackleft.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <qthread/qthread.h>
#include "argparsing.h"

static unsigned int target = 10;
static unsigned int target = 8;
static aligned_t x = 0;

static aligned_t alldone;
Expand Down
5 changes: 3 additions & 2 deletions test/basics/sinc_workers.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ int main(void){
qt_sinc_t sinc;
qt_sinc_init(&sinc, 0, NULL, NULL, 1);
int ret;
args_t args = { 28, &sinc, &ret };
int depth = 20;
args_t args = { depth, &sinc, &ret };
qthread_fork_copyargs(fib, &args, sizeof(args_t), NULL);
qt_sinc_wait(&sinc, NULL);
assert(ret == expected[28]);
assert(ret == expected[depth]);
}

0 comments on commit b1171cb

Please sign in to comment.