55987 Commits

Author SHA1 Message Date
Samuel Williams
f607e43352 Transition root fiber into state FIBER_TERMINATED.
During fork, it's possible that threads with root fibers are terminated,
but fiber state is not updated. `fiber_verify` will subsequently fail. We
forcefully enter the FIBER_TERMINATED state when terminating the root
fiber.
2019-06-20 22:36:30 +12:00
Nobuyoshi Nakada
3077cb6912
Restore $VERBOSE 2019-06-20 18:20:38 +09:00
Nobuyoshi Nakada
e31602b78d
Suppress warnings 2019-06-20 17:41:09 +09:00
Kazuhiro NISHIYAMA
e6fbdde229
Fix a typo [ci skip] 2019-06-20 17:40:08 +09:00
Hiroshi SHIBATA
3aa8691d52 Added and update the racc entries on doc/*. 2019-06-20 16:11:03 +09:00
Hiroshi SHIBATA
557bcd8774 Added racc entry to NEWS. 2019-06-20 16:11:03 +09:00
Hiroshi SHIBATA
5bbfca7b1d Removed needless file with the upstream repository. 2019-06-20 16:11:03 +09:00
Hiroshi SHIBATA
71ebf6d8e5 Update sync task for the directory structure of cparse and ignore JRuby files. 2019-06-20 16:11:03 +09:00
Hiroshi SHIBATA
45e939f5ad Added gemspec of racc generated from upstream for the default gems.
1.4.16.pre.1 is the teemporary version. It may be changed 1.5.0 or others.
2019-06-20 16:11:03 +09:00
aycabta
c4c47b792d Disable auto indent when move cursor up or down
This commit suppresses a strange behavior below:

  if true
    1[cursor]
  end

and press down key

  if true
  1
  end
2019-06-20 16:00:30 +09:00
Samuel Williams
e4cafa393f Ensure that vm_stack is cleared in thread_cleanup_func_before_exec.
If `vm_stack` is left dangling in a forked process, the gc attempts to scan
it, but it is invalid and will cause a segfault. Therefore, we clear it
before forking.

In order to simplify this, `rb_ec_clear_vm_stack` was introduced.
2019-06-20 16:44:50 +12:00
Samuel Williams
c26c514494 Revert failed attempt at fixing invalid usage of vm_stack. 2019-06-20 15:30:29 +12:00
Samuel Williams
7d9d1ed463 Don't clear cfp, it causes problems. 2019-06-20 14:55:43 +12:00
Samuel Williams
15c4f6aed2 Skip rb_ec_clear_vm_stack for now. 2019-06-20 14:16:08 +12:00
git
199310997f * remove trailing spaces. 2019-06-20 10:41:46 +09:00
Samuel Williams
dbc2b89bc0 Ensure vm_stack is cleared after fork. 2019-06-20 13:41:18 +12:00
Samuel Williams
6bf1285b20 Fix typo in VM_ASSERT. 2019-06-20 12:07:15 +12:00
Samuel Williams
626483721a Set cfp to null (along with vm_stack) in rb_fiber_close. 2019-06-20 11:56:06 +12:00
Samuel Williams
25049a6e81 Extra assertions around thread. 2019-06-20 11:32:08 +12:00
Samuel Williams
91c4ef0151 Don't try to dereference NULL cfp. 2019-06-20 11:31:22 +12:00
Jeremy Evans
a0af60c7f2 Remove spec testing undefined behavior
Fixes [Bug #15432]
2019-06-19 12:20:30 -07:00
git
208cc6e3d0 * 2019-06-20 2019-06-20 04:07:35 +09:00
git
fdfe51d169 * expand tabs. 2019-06-20 04:07:31 +09:00
Jeremy Evans
b9ef35e4c6 Implement Complex#<=>
Implement Complex#<=> so that it is usable as an argument when
calling <=> on objects of other classes (since #coerce will coerce
such numbers to Complex).  If the complex number has a zero imaginary
part, and the other argument is a real number (or complex number with
zero imaginary part), return -1, 0, or 1.  Otherwise, return nil,
indicating the objects are not comparable.

Fixes [Bug #15857]
2019-06-19 10:50:58 -07:00
Yusuke Endoh
65944e96d3 test/racc/test_racc_command.rb: Extend the timeout
test_opal, test_ruby18, and test_ruby22 are slow tests.

https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-ad7f67/ruby-master/log/20190619T105405Z.fail.html.gz
2019-06-19 23:10:40 +09:00
Samuel Williams
2abe548f35 Don't change vm_stack/cfp without acquiring gvl first. 2019-06-20 02:05:16 +12:00
Nobuyoshi Nakada
ab6d8d0b65
Adjust indent 2019-06-19 20:40:49 +09:00
git
659eda7f83 * expand tabs. 2019-06-19 20:33:24 +09:00
Samuel Williams
d17344cfc5 Remove IA64 support. 2019-06-19 23:30:04 +12:00
Hiroshi SHIBATA
40f8c82b96 Partly revert directory structure for cparse.
It break the some build environment.
2019-06-19 18:35:44 +09:00
git
b93508b32c * remove trailing spaces, append newline at EOF. 2019-06-19 18:19:20 +09:00
Hiroshi SHIBATA
754df26210 Added binstub for racc executables. 2019-06-19 18:18:17 +09:00
Hiroshi SHIBATA
2b4024da32 Temporary disabled to invoke assert_output_unchanged.
Because some environment created the different results from test fixtures.
2019-06-19 18:18:13 +09:00
Hiroshi SHIBATA
e892c2f924 Restore ruby/ruby change for extconf.rb. 2019-06-19 18:18:08 +09:00
Hiroshi SHIBATA
d710321800 Workaround for the external file for racc test 2019-06-19 18:18:04 +09:00
Hiroshi SHIBATA
8a3bd06d27 use TEMP_DIR. 2019-06-19 18:17:59 +09:00
Hiroshi SHIBATA
4cca8c4d20 Use Test::Unit instead of Minitest and fixed test error with ruby repo.
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2019-06-19 18:17:53 +09:00
Hiroshi SHIBATA
2272d6ae24 Restore test_dir and update prefix for Dir.mktmpdir. 2019-06-19 18:17:48 +09:00
Hiroshi SHIBATA
9ea1fc27a9 Try to use Dir.mktmpdir. 2019-06-19 18:17:44 +09:00
Hiroshi SHIBATA
4e218282d2 Added sync task for racc 2019-06-19 18:17:38 +09:00
Hiroshi SHIBATA
c110b59af5 Fixed path for ruby core repository. 2019-06-19 18:17:31 +09:00
Hiroshi SHIBATA
1a2546c2be Backport racc-1.4.15 from upstream. 2019-06-19 18:17:25 +09:00
git
cbe06cd350 * remove trailing spaces, expand tabs. 2019-06-19 17:39:58 +09:00
Samuel Williams
3e5b885cd2 Rework debug conditional. 2019-06-19 20:39:10 +12:00
Samuel Williams
cb5da39f20 Use shared implementation of rb_ec_initialize_vm_stack. 2019-06-19 20:39:10 +12:00
Samuel Williams
7147038053 Update stack_start and stack_maxsize according to stack direction. 2019-06-19 20:39:10 +12:00
Samuel Williams
dee0cfbb47 Specify that size is non-committed memory. 2019-06-19 20:39:10 +12:00
Samuel Williams
561c9bcf3a Make sure alloca fast path is used (inline assembler). 2019-06-19 20:39:10 +12:00
Samuel Williams
7cc7269b3d Use default stack size for worker thread (no th pointer available). 2019-06-19 20:39:10 +12:00
Samuel Williams
9cb4e7725f Handle (empty) backtrace when thread is not born yet. 2019-06-19 20:39:10 +12:00