1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/missing
NARUSE, Yui 6bf32cbed8 merge revision(s) 63abb5c227e5c20d18d0debf699251da93ca64b5,34d02631e71209b12abb69d0114601027e485bc9,2adbf01ae14c0a4cf190b7c969b91726966a0e0f,3acc81d9e41b18380b9e0168fe2b5e5e0c727256: [Backport #17612]
dtoa.c: make compilable independently

	Except for `-Dxmalloc=malloc -Dxfree=free`.
	---
	 missing/dtoa.c | 24 ++++++++++++++++++------
	 1 file changed, 18 insertions(+), 6 deletions(-)

	dtoa.c: constified

	clang seems to locate never modified local data in the const
	segment implicitly.
	---
	 missing/dtoa.c | 2 +-
	 1 file changed, 1 insertion(+), 1 deletion(-)

	dtoa.c: make thread-safe by using atomic CAS

	---
	 common.mk      |  2 ++
	 missing/dtoa.c | 75 ++++++++++++++++++++++++++++++++++++++++++----------------
	 util.c         |  1 +
	 3 files changed, 57 insertions(+), 21 deletions(-)

	Fixed race in dtoa [Bug #17612]

	Fixed the race condition when replacing `freelist` entry with its
	chained next element.  At acquiring an entry, hold the entry once
	with the special value, then release by replacing it with the next
	element again after acquired.  If another thread is holding the
	same entry at that time, spinning until the entry gets released.

	Co-Authored-By: Koichi Sasada <ko1@atdot.net>
	---
	 bootstraptest/test_ractor.rb | 11 +++++++++++
	 missing/dtoa.c               | 13 ++++++++++---
	 2 files changed, 21 insertions(+), 3 deletions(-)
2021-03-13 05:11:30 +09:00
..
acosh.c
alloca.c sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
cbrt.c
close.c
crt_externs.h
crypt.c
crypt.h add #include guard hack 2020-04-13 16:06:00 +09:00
des_tables.c
dtoa.c merge revision(s) 63abb5c227e5c20d18d0debf699251da93ca64b5,34d02631e71209b12abb69d0114601027e485bc9,2adbf01ae14c0a4cf190b7c969b91726966a0e0f,3acc81d9e41b18380b9e0168fe2b5e5e0c727256: [Backport #17612] 2021-03-13 05:11:30 +09:00
dup2.c sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
erf.c
explicit_bzero.c [DOC] explicit_bzero exists in modern Linux 2020-04-26 02:00:45 +09:00
ffs.c
file.h add #include guard hack 2020-04-13 16:06:00 +09:00
finite.c
flock.c sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
hypot.c
isinf.c sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
isnan.c
langinfo.c
lgamma_r.c
memcmp.c
memmove.c
mt19937.c
nan.c
nextafter.c
procstat_vm.c Get rid of false positive misspellings 2019-12-24 10:33:32 +09:00
setproctitle.c
signbit.c
strchr.c
strerror.c
strlcat.c
strlcpy.c
strstr.c
tgamma.c sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
x86_64-chkstk.S