Skip to content

cordtest hang on Windows if shared build by Zig using msvc #640

Open
@ivmai

Description

@ivmai

Source: master (2eaa40c)
Build: https://github.com/ivmai/bdwgc/actions/runs/8928784437/job/24525078409
Zig version: 0.12.0
Command: zig build -Dtarget=native-native-msvc -DBUILD_SHARED_LIBS=true -Ddisable_handle_fork=false -Denable_cplusplus=false -Denable_gc_assertions=true -Denable_gc_debug=false -Denable_large_config=false -Denable_munmap=true -Denable_parallel_mark=false -Denable_redirect_malloc=false -Denable_rwlock=false -Denable_thread_local_alloc=false -Denable_threads=false -Denable_werror -Dbuild_cord=true "-DCFLAGS_EXTRA=-DGC_PRINT_VERBOSE_STATS -DCONSOLE_LOG" test
Output (cordtest):

Got 65536 bytes from OS
Got 6[5](https://github.com/ivmai/bdwgc/actions/runs/8928784437/job/24525078409#step:4:6)536 bytes from OS
Got 6553[6](https://github.com/ivmai/bdwgc/actions/runs/8928784437/job/24525078409#step:4:7) bytes from OS
In-use heap: 0% (0 KiB pointers + 0 KiB other)
Got 65536 bytes from OS
Grow heap to 64 KiB after 0 bytes allocated
Grew heap sections array to 32 elements
Initiating full world-stop collection!
0 bytes in heap blacklisted for interior pointers
Found new system malloc AllocationBase at 00000291F[7](https://github.com/ivmai/bdwgc/actions/runs/8928784437/job/24525078409#step:4:8)900000
--> Marking for collection #1 after 0 allocated bytes
World-stopped marking took 16 ms 0 ns (16 ms in average)
Bytes recovered before sweep - f.l. count = 0
GC #1 freed 0 bytes, heap 64 KiB (+ 0 KiB unmapped + 362 KiB internal)
In-use heap: 0% (0 KiB pointers + 0 KiB other)
0 finalization entries; 0/0 short/long disappearing links alive
0 finalization-ready objects; 0/0 short/long links cleared
Finalize and initiate sweep took 0 ms 0 ns + 0 ms 0 ns
Complete collection took [16](https://github.com/ivmai/bdwgc/actions/runs/8928784437/job/24525078409#step:4:17) ms 0 ns
Initializing mprotect virtual dirty bit implementation
Using GetWriteWatch()
Adding block map for size of 1 granules (16 bytes)
Adding block map for size of 2 granules (32 bytes)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions