Nobuyoshi Nakada
03284fb911
assert_in_out_err should use FailDesc too
2019-09-27 21:07:53 +09:00
Nobuyoshi Nakada
642dbb962c
make-snapshot: store timestamps in UTC for zip which lacks timezone
2019-09-23 01:25:17 +09:00
Kazuhiro NISHIYAMA
d8221a54f2
Add `-mtc=off` to `7z` not to store NTFS timestamps
...
https://sevenzip.osdn.jp/chm/cmdline/switches/method.htm
2019-09-23 00:55:48 +09:00
Nobuyoshi Nakada
b0d24e262f
make-snapshot: Added -no7z option
...
It disables 7z, which seems not to have an option to stop saving
extra file attributes (uid/gid and atime), in order to make zip
packages stable.
2019-09-22 22:26:07 +09:00
Nobuyoshi Nakada
7fe7dec7e5
make-snapshot: Do not save extra file attributes
...
Extra file attributes (uid/gid and atime) make the packaged zip
file unstable.
2019-09-22 22:18:14 +09:00
Yusuke Endoh
5f35b8ca30
st.c: Use rb_st_* prefix instead of st_* ( #2479 )
...
The original st.c was public domain hash table implementation, but
Ruby's st.c is highly modified, and its data structure is not
compatiblie with the original one.
Therefore, when creating an extension library to wrap C code that uses
the original st.c, the symbols conflict, which leads to segfault.
This changes the prefix `st_*` of st.c functions to `rb_st_*` for
reflecting that they are specific to Ruby's, and avoid symbol conflicts.
2019-09-22 22:12:18 +09:00
Fangrui Song
e006b992c2
typedef rb_jmpbuf_t to void *[5] if __builtin_setjmp is used
...
The built-in version operates on a buffer of 5 words, much smaller than
the size of jmp_buf defined in libc.
Note, powerpc requires 5 words, while arm and x86_64 just require 3.
2019-09-21 13:24:58 +09:00
Hiroshi SHIBATA
1de242de0f
Fixed up 37c0839425
2019-09-20 14:22:32 +09:00
Hiroshi SHIBATA
9d25c652a9
Removed ThreadsWait from the ruby repository
2019-09-20 14:21:04 +09:00
Hiroshi SHIBATA
37c0839425
Removed Synchronizer from the ruby repository.
2019-09-20 14:06:22 +09:00
Hiroshi SHIBATA
3b56a0934f
Removed Shell from the ruby repository.
2019-09-20 12:56:18 +09:00
Hiroshi SHIBATA
67a6662032
Removed Scanf from the ruby repository.
2019-09-20 12:43:11 +09:00
Hiroshi SHIBATA
a3b8501614
Removed CMath from the ruby repository.
2019-09-20 12:31:37 +09:00
Nobuyoshi Nakada
6cad064424
Try to fetch commits notes to the source tree automatically
...
[Bug #16167 ]
2019-09-15 16:23:33 +09:00
Nobuyoshi Nakada
585b15d75d
make-snapshot: no merge commits in ChangeLog
...
Parents commit hashs in logs of merge commits are abbreviated to
necessary length depending on the repositories. Exclude merge
commits from ChangeLog to make it stable.
2019-09-15 11:22:32 +09:00
Nobuyoshi Nakada
df4a4bd88c
make-snapshot: export ChangeLog from srcdir
2019-09-15 11:22:32 +09:00
Nobuyoshi Nakada
1ad4be13cb
make-snapshot: deprecated -exported option [Bug #16167 ]
2019-09-15 02:07:00 +09:00
Nobuyoshi Nakada
e9c7fc7ca9
Continue to export even if no notes/commits
...
Just exporting may not imply exporting ChangeLog which needs
notes/commits. [Bug #16167 ]
2019-09-14 23:50:45 +09:00
Nobuyoshi Nakada
3ef76ce44a
make-snapshot: -git option is no longer provided [ci skip]
2019-09-08 21:22:37 +09:00
Nobuyoshi Nakada
2d017d6126
make-snapshot: default to the toplevel directory
...
As this tool has been intended to use in a working directory,
assume that the toplevel directory is under the VCS, and SVN will
no longer be canonical.
2019-09-08 00:48:18 +09:00
Nobuyoshi Nakada
f3bae2c6cf
Touch copied cache files to make tarballs stable
2019-09-08 00:22:25 +09:00
Nobuyoshi Nakada
5a6954ba74
Suppress detached head warning
2019-09-08 00:22:24 +09:00
Nobuyoshi Nakada
5511213487
Exit gently if no VCS found but --suppress_not_found is given
2019-09-07 17:26:28 +09:00
Nobuyoshi Nakada
5b5c9b6101
Removed no longer used variable
2019-09-07 17:26:28 +09:00
Nobuyoshi Nakada
8b290448e3
Assign to vcs in new_vcs block not to use rescue result
2019-09-07 11:56:23 +09:00
Nobuyoshi Nakada
59e29389a8
Fixed wrong method at 71f7b0421a
2019-09-07 11:47:45 +09:00
Nobuyoshi Nakada
3fafc549ba
Fix error when checking file modified with git-svn
2019-09-07 11:38:39 +09:00
Nobuyoshi Nakada
d783609ac3
Get rid of overwriting revision.h and creating .revision.time
2019-09-07 11:38:39 +09:00
Nobuyoshi Nakada
5118aa2d58
Use `git describe --contains` for tags
2019-09-07 11:38:38 +09:00
Nobuyoshi Nakada
3890c9eeee
Added more debug outputs from VCS::GIT
2019-09-07 11:38:38 +09:00
Nobuyoshi Nakada
71f7b0421a
Refined file2lastrev.rb options
...
* check --srcdir if given twice or more
* falls back to the current working directory if no --srcdir
option is given.
* define common VCS options.
2019-09-07 11:38:38 +09:00
Nobuyoshi Nakada
799de9122e
Separated VCS.define_options for common VCS options
2019-09-07 11:38:38 +09:00
Nobuyoshi Nakada
055b441093
VCS::GIT no longer accepts remote repository
2019-09-06 22:15:36 +09:00
卜部昌平
a569bc09e2
add include/ruby/backward/cxxanyargs.hpp
...
Compilation of extension libraries written in C++ are reportedly
broken due to https://github.com/ruby/ruby/pull/2404
The root cause of this issue was that the definition of ANYARGS
differ between C and C++, and that of C++ is incompatible with the
updated ones.
We are using the incompatibility against itself. In C++ two distinct
function prototypes can be overloaded. We provide the old, ANYARGSed
prototypes in addition to the current granular ones; and let the
older ones warn about types.
2019-09-06 15:50:58 +09:00
Yusuke Endoh
41b7c335d3
Revert "Add a temporal stack dumper for debugging on trunk-mjit"
...
This reverts commit 433c9c00d9
.
Successfully captured some traces, and
3b60e5e6bc
seems to fix the issue.
2019-09-06 13:04:36 +09:00
Yusuke Endoh
433c9c00d9
Add a temporal stack dumper for debugging on trunk-mjit
...
This must be definitely removed after we collect the stack traces :-)
http://ci.rvm.jp/results/trunk-mjit@silicon-docker/2245710
2019-09-05 22:16:21 +09:00
Nobuyoshi Nakada
8a608f1b1f
Removed -git option of make-snapshot
...
Git is not for direct access to a remote repository.
Most of its operations need a local clone.
2019-09-05 14:39:53 +09:00
Nobuyoshi Nakada
9f59d30daa
Separate VCS::DEBUG_OUT
2019-09-05 00:33:49 +09:00
Kazuhiro NISHIYAMA
967ef0d4f6
Use `git pull` instead of `git fetch` if master branch
2019-09-04 12:46:26 +09:00
Takashi Kokubun
c14b67b2a8
Check frozen flag on MJIT setinstancevariable
...
It does not seem to have a significant performance impact, hopefully?
```
$ benchmark-driver -v benchmark.yml --rbenv 'before --jit;after --jit' --repeat-count=24 --output=all
before --jit: ruby 2.7.0dev (2019-09-03T21:02:24Z master 77596fb7a9
) +JIT [x86_64-linux]
after --jit: ruby 2.7.0dev (2019-09-04T01:54:44Z master 7363e22d79) +JIT [x86_64-linux]
Calculating -------------------------------------
before --jit after --jit
Optcarrot Lan_Master.nes 48.44054595799523 71.67010255902900 fps
71.32797692837639 71.97846863769546
72.51921961607691 78.87360980544105
73.54082925611047 79.80408132389941
74.03503843709451 79.85739528572826
74.04863857926493 79.89850834901381
75.30266276129467 80.34607233076015
75.69063990896244 80.88474397425360
75.70458132587405 81.09234267781642
77.39842764662852 82.13766823612643
77.76922944068329 82.20398304840373
81.17984044023393 82.26722630628272
82.85235776076533 82.71375902781254
83.04906099135320 82.75893420702198
83.10214168136230 82.79668965325972
83.71456007558125 82.85131667916379
84.06658306760725 82.95676565411722
84.25690684305728 83.19972846225775
84.27938663923503 83.28510503845854
84.45467716218090 83.41003730434703
84.51563186125925 83.67773614721280
84.56139892968321 84.02082201151110
84.69819452180658 84.10495346787033
84.78125989622576 84.47867803506055
```
Note for backporter:
test_jit's `success_count` would be 1 in Ruby 2.6, since 2.7 introduced
"MJIT recompile" on JIT-ed code cancel.
[Bug #16139 ]
2019-09-04 11:10:21 +09:00
Takashi Kokubun
1a9cc3b27c
Avoid defining unused instructions
2019-09-03 14:22:44 +09:00
Nobuyoshi Nakada
e6c4ea22d6
Touch tar file itself to make gz file hash stable
2019-09-03 12:28:00 +09:00
Nobuyoshi Nakada
b0a7221dcf
Touch the toplevel directory too
2019-09-03 11:58:02 +09:00
Nobuyoshi Nakada
542a1ade80
--date=iso-local does not work with old git
2019-09-03 11:33:29 +09:00
Nobuyoshi Nakada
703f0cd3d0
Do not keep tar file by the default
2019-09-03 11:30:40 +09:00
Nobuyoshi Nakada
c181ecc161
Align timestamps to make tarball stable
2019-09-03 11:14:07 +09:00
Nobuyoshi Nakada
d83ade1db5
Use -z option for git-log
2019-09-03 00:33:02 +09:00
Nobuyoshi Nakada
6a9c5ef186
Extract git commit log as raw format like git-svn for ChangeLog
2019-09-02 23:28:21 +09:00
Nobuyoshi Nakada
1f636e74e6
Set mtime of checked out files to past time
...
instead of waiting 2 seconds, if possible.
2019-09-02 12:16:21 +09:00
Nobuyoshi Nakada
f82cf05626
Fixed the directory to be removed
2019-09-02 00:42:23 +09:00