nobu
38dbbf33b0
rmd160/extconf.rb: fix function name
...
* ext/digest/rmd160/extconf.rb: fix transform function name to
check. [ruby-core:65091] [Bug #10252 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-05 01:38:52 +00:00
nobu
acf1ea1ab4
psych: typed data
...
* ext/psych/psych_emitter.c (psych_emitter_type): turn into typed
data.
* ext/psych/psych_parser.c (psych_parser_type): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 23:33:19 +00:00
nobu
163cb5b43d
openssl: typed data
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 23:33:15 +00:00
nobu
1e46f02394
json/parser: typed data
...
* ext/json/parser/parser.rl (JSON_Parser_type): turn into typed
data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 23:33:11 +00:00
nobu
bdfc2e2942
json/generator: typed data
...
* ext/json/generator/generator.c (JSON_Generator_State_type): turn
into typed data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 23:33:09 +00:00
nobu
ab7695fc50
sdbm: typed data
...
* ext/sdbm/init.c (sdbm_type): turn into typed data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 23:33:06 +00:00
nobu
20904659c3
gdbm: typed data
...
* ext/gdbm/gdbm.c (dbm_type): turn into typed data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 23:33:04 +00:00
nobu
ad48d99876
dbm: typed data
...
* ext/dbm/dbm.c (dbm_type): turn into typed data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 23:33:01 +00:00
nobu
ba0655ebdd
ext: protoize no-arguments functions
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 23:29:24 +00:00
nobu
5540c1de81
ext: protoize no-arguments functions
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 23:09:32 +00:00
normal
02be147c8a
ext/zlib/zlib.c: TypedData conversion
...
* ext/zlib/zlib.c (zstream_mark, zstream_free): update signature
(gzfile_mark, gzfile_free): ditto
(zstream_memsize): new function for rb_data_type->dsize
(gzfile_memsize): ditto
(zstream_data_type, gzfile_data_type): new data types
(zstream_new): Data_Make_Struct => TypedData_Make_Struct
(gzfile_new): ditto
(get_zstream, get_gzfile): Data_Get_Struct => TypedData_Get_Struct
(rb_zstream_flush_next_in): ditto
(rb_zstream_flush_next_out): ditto
(rb_zstream_avail_out): ditto
(rb_zstream_avail_in): ditto
(rb_zstream_closed_p): ditto
(rb_deflate_initialize): ditto
(rb_deflate_init_copy): ditto
(rb_inflate_initialize): ditto
(gzfile_ensure_close): ditto
(rb_gzfile_closed_p): ditto
(rb_gzfile_path): ditto
(rb_gzwriter_initialize): ditto
(rb_gzreader_initialize): ditto
(rb_gzreader_unused): ditto
[ruby-core:65377] [Feature #10319 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 20:56:10 +00:00
svn
ee3675e0b1
* 2014-10-05
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 15:08:03 +00:00
nobu
bc512a375d
parse.y: remove unused argument
...
* parse.y (list_concat): remove unused argument parser, since
never allocates new node.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 15:07:51 +00:00
nobu
6557a6b9ed
st.c: update st_reverse_foreach
...
* st.c (st_reverse_foreach): update as st_foreach().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 14:13:36 +00:00
nobu
27ce2d1328
test_gem_source_git.rb: drop intended error message
...
* test/rubygems/test_gem_source_git.rb (test_rev_parse): dispose
error message by git, which should be intended.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 12:31:34 +00:00
odaira
11ad7c4dbe
test/test_syslog.rb (TestSyslog#test_log): In AIX, each output line of LOG_PERROR to stderr has an additional empty line appended, so skip that line.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 07:35:43 +00:00
odaira
bebb4e9dea
test/socket/test_unix.rb (TestSocket_UNIXSocket#test_too_long_path): sockaddr_un.sun_path in AIX is defined as char[1024], so "a" * 300 is not too long. "a" * 3000 would be enough.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 07:11:54 +00:00
zzak
b4e9ffbdc8
* ext/win32ole/sample/example*.rb: Add wait input to quit for examples
...
with patch provided by @windwiny [Fixes GH-705]
https://github.com/ruby/ruby/pull/705
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 00:13:18 +00:00
zzak
34fcb5dbee
* ext/win32ole/win32ole.c: [DOC] Fix typo in :nodoc: reported by
...
@windwiny to [Fix GH-705] https://github.com/ruby/ruby/pull/705
* ext/pty/pty.c: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 00:09:57 +00:00
zzak
165625e8e1
* ext/openssl/ossl_rand.c: [DOC] Add call signature for pseudo_bytes
...
and random_bytes, wrap lines at 80 chars, and remove useless
comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-04 00:01:07 +00:00
zzak
27886620d8
* ext/openssl/ossl_rand.c: [DOC] Add rdoc for method descriptions
...
By @vipulnsward [Fixes GH-657] https://github.com/ruby/ruby/pull/657
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-03 23:51:09 +00:00
zzak
ce63c19ccc
* ext/openssl/ossl_rand.c: Use rb_define_module_function instead of
...
macro. [Fixes GH-686] https://github.com/ruby/ruby/pull/686
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-03 23:24:50 +00:00
suke
f895ecdcee
ext/win32ole/win32ole_method.c(olemethod_set_member): remove
...
redundant NULL check.
ext/win32ole/win32ole_type.c(oletype_set_member): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-03 21:08:55 +00:00
hsbt
273af33537
* .travis.yml: removed needless preparation for gcc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-03 15:25:08 +00:00
svn
b9831d2141
* 2014-10-04
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-03 15:09:53 +00:00
nobu
bd4aa40f45
NEWS: mentioned about [Bug #9593 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-03 15:09:48 +00:00
hsbt
5eed468b8a
* .travis.yml: enabled gcc build with osx on travis.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-03 14:41:26 +00:00
shirosaki
438fb66969
fake.rb.in: fix make install failure
...
* template/fake.rb.in: fix make install failure due to MSYS path
with mingw on MSYS environment.
[ruby-core:64965] [Bug #10230 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-03 14:27:31 +00:00
hsbt
5207d9f158
* test/ruby/test_io.rb (TestIO#test_advise): avoid to infinite loop.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-03 12:02:49 +00:00
hsbt
d36f3e3b43
* .travis.yml: enabled test results of linux.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-03 12:02:46 +00:00
hsbt
66b6179ec1
* test/ruby/test_io.rb (TestIO#test_advise): added workaround of fadvise(2)
...
with tmpfs and old linux kernel. [ruby-core:65355][Bug #10313 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-03 09:52:21 +00:00
hsbt
bf1814d990
* .travis.yml: Disabled to generate document on travis.
...
Reduce test running time.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-03 09:22:50 +00:00
marcandre
5b46b07bf3
* lib/matrix.rb: Add hstack & vstack methods.
...
Based on a patch by creasywuqiong. [Fix GH-344]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-03 03:44:20 +00:00
marcandre
f59098d118
* lib/matrix.rb: Fix Matrix.rows copy bug.
...
Patch by Arron Mabrey. [Fix GH-707]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-03 03:38:06 +00:00
normal
1b5acebef2
st.c (new_size): use next_pow2 function
...
Reduces object size slightly on x86-64:
text data bss dec hex filename
2782359 22400 71880 2876639 2be4df ruby.orig
2781831 22400 71880 2876111 2be2cf ruby.pow2
And on 32-bit x86:
text data bss dec hex filename
2814751 12100 30552 2857403 2b99bb ruby.orig
2814051 12100 30552 2856703 2b96ff ruby.pow2
This is not a performance-critical function, but the
smaller icache footprint seems worth it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-02 21:17:13 +00:00
svn
7f28451684
* 2014-10-03
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-02 20:59:53 +00:00
normal
d2efc00b06
vm_trace.c (rb_tp_t): pack 56 => 48 bytes on 64-bit
...
48 bytes is a common malloc size class on x86-64 machines which
require 16-byte alignment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-02 20:59:40 +00:00
usa
56fa18c9d3
* ext/etc/etc.c (etc_nprocessors): Windows support.
...
see [Feature #10267 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-02 09:42:23 +00:00
akr
fe18cd011c
test_advice show OS and filesystem when failed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-02 08:57:44 +00:00
akr
253bd7b103
Describe Etc.nprocessors.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-02 03:28:46 +00:00
akr
7b25bd8ba2
* ext/etc/etc.c (etc_nprocessors): New method.
...
Accepted by matz at RubyKaigi 2014.
[ruby-core:65142] [Feature #10267 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-02 03:23:26 +00:00
normal
57da36ebcf
iseq.c (rb_iseq_line_trace_each): explicit cast
...
Fix https://travis-ci.org/ruby/ruby/jobs/36814282
Tested with -Wconversion since my gcc lacks -Wshorten-64-to-32
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-01 23:03:35 +00:00
normal
11f3526734
ruby.h: set rb_event_flag_t to uint32_t
...
This ensures a consistent implementation between 32 and 64-bit
platforms, as vm_trace.c limits events to 32-bits. This can
also open up struct packing opportunities.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-01 21:13:30 +00:00
normal
3aab1f8467
io.c (fptr_finalize): free memory before GC sweep
...
This releases memory on explict calls to rb_io_close,
reducing pressure on the GC.
Final massif snapshot shows reduced heap usage after RubyGems load
(valgrind --tool=massif ./ruby -e exit)
before:
mem_heap_B=4821992
mem_heap_extra_B=1302952
after:
mem_heap_B=4791056
mem_heap_extra_B=1192440
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-01 20:36:28 +00:00
svn
cfc565796a
* 2014-10-02
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-01 20:29:57 +00:00
normal
a17ffebfa0
marshal.c: lazy compat_tbl allocation
...
In some common cases, compat_tbl is unused in dump_arg/load_arg,
so avoid malloc/free costs for the unused table.
ruby -e 'h = {a: :b}; 600000.times { Marshal.load(Marshal.dump(h)) }'
before:
real 0m2.458s
user 0m2.450s
sys 0m0.006s
after:
real 0m2.122s
user 0m2.110s
sys 0m0.011s
* marshal.c (w_class): check dump_arg->compat_tbl before lookup
(w_object): lazy init ->compat_tbl before insert
(obj_alloc_by_class): ditto
(clear_dump_arg): free only non-NULL ->compat_tbl
(clear_load_arg): ditto for ->compat_tbl
(marshal_dump): ->compat_tbl defaults to zero
(marshal_load): ditto for ->compat_tbl
(r_entry0): check l->compat_tbl before lookup
(r_fixup_compat): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-01 20:29:46 +00:00
svn
3b841719c9
* remove trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-01 12:16:48 +00:00
suke
8d00b43b30
ext/win32ole/win32ole_type.c: use typed data.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-01 12:16:35 +00:00
hsbt
2b0cc32c1a
* compile.c: remove commented out code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-01 09:15:49 +00:00
odaira
f17b95f21c
test/fileutils/test_fileutils.rb: AIX does not allow a sticky bit on a regular file.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-01 08:48:17 +00:00