1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Davide Beatrici c9a5896468
bultin: always enable GC_THREADS, even with -d dynamic_boehm, otherwise multithread operation is unsafe (#15275)
According to upstream documentation, only GC_WIN32_THREADS is explicit.

This PR fixes a random memory corruption(s) with "-d dynamic_boehm" on OpenMandriva.
1679adc04d.log
```
DEBUG: + VFLAGS='-prod -d dynamic_boehm'
DEBUG: + /usr/bin/clang -Os -fomit-frame-pointer -g3 -gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector-all --param=ssp-buffer-size=4 -m64 -mtune=generic -flto -std=gnu99 -w -o tmp_1 v.c -lm -lpthread -Os -fomit-frame-pointer -g3 -gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector-all --param=ssp-buffer-size=4 -m64 -mtune=generic -flto -Wl,-O2 -Wl,--no-undefined -flto
DEBUG: + ./tmp_1 -no-parallel -o tmp_2 -prod -d dynamic_boehm cmd/v
DEBUG: + ./tmp_2 -o v -prod -d dynamic_boehm cmd/v
DEBUG: /var/tmp/rpm-tmp.mcjmqc: line 52:   644 Bus error               (core dumped) ./v build-tools
```
2022-07-30 14:59:12 +03:00
..
2022-06-26 07:08:05 +03:00
2022-04-15 18:25:45 +03:00
2022-04-15 18:25:45 +03:00
2022-04-15 18:25:45 +03:00
2022-07-25 17:25:47 +03:00
2022-04-15 18:25:45 +03:00
2022-04-15 18:25:45 +03:00
2022-07-27 00:59:32 +03:00
2022-07-27 00:59:32 +03:00
2022-01-19 19:29:29 +02:00
2022-07-27 00:59:32 +03:00
2022-05-07 12:55:40 +03:00
2022-07-21 21:01:30 +03:00
2022-07-21 21:01:30 +03:00
2022-05-05 10:17:24 +03:00

vlib Documentation

vlib is the term for all modules included by default with V and maintained as part of the V source code repository.

Some included modules depend on third party libraries, and these are kept separate in the thirdparty directory at the root level of the source repository.