1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib
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
..
arrays
benchmark
bitfield
builtin bultin: always enable GC_THREADS, even with -d dynamic_boehm, otherwise multithread operation is unsafe (#15275) 2022-07-30 14:59:12 +03:00
cli cli: fix compilation 2022-06-26 07:08:05 +03:00
clipboard clipboard: make clipboard.Clipboard public on windows (#14810) 2022-06-21 08:21:54 +03:00
compress compress.gzip: support gzip.decompress(data, verify_length: false, verify_checksum: false)? 2022-06-12 11:25:01 +03:00
context
crypto crypto: add an example of how to verify jwt tokens (#15198) 2022-07-24 10:27:21 +03:00
darwin
datatypes all: wrap up unsafe { nil } (p. 3) 2022-07-21 21:01:30 +03:00
dl
dlmalloc ci: fix dlmalloc again (workaround vfmt) 2022-07-21 21:21:20 +03:00
encoding encoding.csv: handle bools (#15103) 2022-07-17 10:54:36 +03:00
eventbus all: wrap up unsafe { nil } (p. 3) 2022-07-21 21:01:30 +03:00
flag
fontstash
gg gg: fix native draw_circle on macos 2022-07-25 17:25:47 +03:00
gx
hash
io checker: improve pub struct check (fix #14446) (#14777) 2022-06-19 17:42:22 +03:00
js ci: fix v build-examples (use voidptr(u64(0)) inside vlib/js/dom/dom.js.v) 2022-07-21 23:08:18 +03:00
json json.cjson: add a submodule that allows lower level access to the cJSON library (constructing JSON trees in memory with null leafs). 2022-07-20 23:34:17 +03:00
log
math math.big: improve multiplication performance (#15200) 2022-07-24 19:35:37 +03:00
mssql
mysql mysql: include workaround for windows programs that just exit, when the libmysql.dll is not found, into vlib/mysql/README.md 2022-07-27 22:26:36 +03:00
net checker: check struct field's fn call (fix #15249) (#15257) 2022-07-29 19:00:51 +03:00
orm orm: default attribute (#15221) 2022-07-27 00:59:32 +03:00
os os: fix File.eof on FreeBSD (feof is a C macro there) 2022-07-28 17:26:55 +03:00
pg orm: default attribute (#15221) 2022-07-27 00:59:32 +03:00
picoev picoev: restore struct Picoev definition (#15278) 2022-07-30 14:30:13 +03:00
picohttpparser all: fix all remaining unsafe 0 (#14856) 2022-06-26 17:04:23 +03:00
rand rand: move dist functions to top module and PRNG interface; minor cleanup (#14481) 2022-05-22 13:21:52 +03:00
readline checker: improve pub struct check (fix #14446) (#14777) 2022-06-19 17:42:22 +03:00
regex
runtime
semver
sokol sokol: add mouse cursor support (#15111) 2022-07-18 09:44:48 +03:00
sqlite orm: default attribute (#15221) 2022-07-27 00:59:32 +03:00
stbi
strconv strconv: make f64_to_str_lnd1 public (fix building vlang/coreutils printf) 2022-05-30 22:14:22 +03:00
strings checker: allow x := unsafe { nil } 2022-07-21 20:56:24 +03:00
sync stdatomic: add/sub return result of op (#15235) 2022-07-27 03:21:03 +03:00
szip
term all: wrap up unsafe { nil } (p. 3) 2022-07-21 21:01:30 +03:00
time all: wrap up unsafe { nil } (p. 3) 2022-07-21 21:01:30 +03:00
toml toml: update readme with value_opt() usage (#14569) 2022-05-31 19:02:33 +03:00
v fmt: fix interface method with fntype argument (#15280) 2022-07-30 14:29:41 +03:00
vweb vweb: check invalid port number (#15016) 2022-07-11 07:55:33 +03:00
x x.ttf: update to fix compilation of vlang/pdf and failing ci (#15109) 2022-07-17 19:44:11 +03:00
.vdocignore
README.md

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.