-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog
6362 lines (3987 loc) · 217 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Thu Feb 2 01:24:34 2012 Yusuke Endoh <[email protected]>
* parse.y (debug_lines, coverage): set file path encoding for coverage
result. [ruby-dev:44950]
Wed Feb 1 14:38:31 2012 Akinori MUSHA <[email protected]>
* lib/tempfile.rb (Tempfile#unlink, Tempfile::Remover#call): Just
call File.unlink and ignore ENOENT because existence check
before unlinking does not help in terms of race condition.
* lib/tempfile.rb (Tempfile#unlink, Tempfile::Remover#call): My
comment about thread safeness is obsolete.
Wed Feb 1 09:50:10 2012 Nobuyoshi Nakada <[email protected]>
* doc/re.rdoc (Repetition): fix typo. reported by Ori Avtalion
and patched by Zachary Scott. [Bug #5947]
Wed Feb 1 06:38:54 2012 Nobuyoshi Nakada <[email protected]>
* io.c (argf_close): skip stdin, which should be readable again.
[ruby-dev:45160] [Bug #5952]
* io.c (argf_readlines): reinitialize after all read to be
readable again.
Tue Jan 31 21:27:43 2012 Narihiro Nakamura <[email protected]>
* configure.in (HEAP_ALIGN_LOG): HEAP_ALIGN_LOG should be page
size in OpenBSD. [ruby-core:42158][Bug #5901]
* gc.c : avoid to redefine.
Tue Jan 31 14:27:22 2012 Nobuyoshi Nakada <[email protected]>
* test/ruby/envutil.rb (EnvUtil.invoke_ruby): yield also child pid
in block form.
Mon Jan 30 19:08:19 2012 Nobuyoshi Nakada <[email protected]>
* vm_eval.c (vm_call0): should pass block to enumerators. patched
by Kazuki Tsujimoto. [ruby-dev:44961][Bug #5731]
* vm_eval.c (method_missing), vm_insnhelper.c (vm_call_method):
ditto. patched by satoshi shiba.
Mon Jan 30 12:31:05 2012 NAKAMURA Usaku <[email protected]>
* file.c (append_fspath): need to set the encoding to result always.
Mon Jan 30 10:38:37 2012 NAKAMURA Usaku <[email protected]>
* test/irb/test_completion.rb: skip if cannot load irb/completion
(maybe readline does not exist).
Sun Jan 29 22:47:19 2012 Yutaka Kanemoto <[email protected]>
* tool/config.{guess,sub}: updated to automake-1.11.2.
Sun Jan 29 12:17:56 2012 Nobuyoshi Nakada <[email protected]>
* ext/readline/readline.c (readline_attempted_completion_function):
respect encodings. [Bug #5941]
Sat Jan 28 09:33:33 2012 Hiroshi Shirosaki <[email protected]>
* win32/win32.c (rb_w32_read): fix an issue that $stdin.read doesn't
terminate by CTRL-C on Windows.
[ruby-dev:45149] [Bug #5812]
Sat Jan 28 08:18:11 2012 Hiroshi Shirosaki <[email protected]>
* test/ruby/test_thread.rb
(TestThreadGroup#test_thread_timer_and_interrupt): skip exit status
assertion because we cannot get signal status on Windows.
* win32/win32.c (CreateChild): create process group to receive the
signal by GenerateConsoleCtrlEvent().
* win32/win32.c (kill): use CTRL_BREAK_EVENT instead of CTRL_C_EVENT
if a process group is specified. CTRL_C_EVENT signal cannot be
generated for process groups for the specification.
[ruby-dev:45149] [Bug #5812]
Sat Jan 28 07:46:03 2012 Hiroshi Shirosaki <[email protected]>
* thread_win32.c (rb_w32_wait_events_blocking): use
ruby_thread_from_native() instead of GET_THREAD() because
GET_THREAD() doesn't always return the current thread and
WaitForMultipleObjects() at rb_w32_read() doesn't return by
Thread#kill. This fixes TestQueue#test_thr_kill failure on
Windows.
* thread_win32.c (rb_w32_wait_events): use ruby_thread_from_native()
instead of GET_THREAD() for consistency with the above change.
* thread_win32.c (rb_w32_sleep): ditto.
* thread_win32.c (rb_w32_Sleep): ditto.
[ruby-dev:45149] [Bug #5812]
Sat Jan 28 07:28:48 2012 Hiroshi Shirosaki <[email protected]>
* test/zlib/test_zlib.rb (TestZlibGzipReader#test_reader_wrap): set
binmode explicitly for fixing test error on Windows. This is consistent
with r34243.
[ruby-dev:45149] [Bug #5812]
Sat Jan 28 05:53:34 2012 Nobuyoshi Nakada <[email protected]>
* lib/irb/completion.rb (IRB::InputCompletor::CompletionProc):
ignore non-string name modules. [ruby-core:42244][Bug #5938]
Fri Jan 27 16:31:45 2012 Nobuyoshi Nakada <[email protected]>
* gc.c (HEAP_ALIGN, HEAP_ALIGN_MASK): DRY, let compiler calculate
from HEAP_ALIGN_LOG.
Thu Jan 26 11:03:37 2012 Eric Hodel <[email protected]>
* lib/matrix.rb: Clean up extra whitespace in output documentation.
Thu Jan 26 03:24:02 2012 Nobuyoshi Nakada <[email protected]>
* ext/io/console/console.c (io_getch): default delegating method
for StringIO. https://github.com/nobu/io-console/issues/4
* ext/stringio/stringio.c: moved some methods to hidden modules.
Wed Jan 25 13:27:42 2012 Nobuyoshi Nakada <[email protected]>
* file.c (rb_file_s_basename): ignore non-ascii extension in
different encoding, which cannot match.
* file.c (rmext): no extension to strip if empty string.
* file.c (rb_enc_path_next, rb_enc_path_skip_prefix)
(rb_enc_path_last_separator, rb_enc_path_end)
(ruby_enc_find_basename, ruby_enc_find_extname): encoding-aware
path handling functions.
* file.c (rb_home_dir, file_expand_path, rb_realpath_internal)
(rb_file_s_basename, rb_file_dirname, rb_file_s_extname)
(rb_file_join): should respect the encodings of arguments than
file system encoding. [ruby-dev:45145] [Bug #5919]
* dir.c (check_dirname, ruby_glob0): ditto.
* ext/pathname/pathname.c (path_sub_ext): ditto.
Tue Jan 24 14:20:42 2012 Nobuyoshi Nakada <[email protected]>
* vm.c (rb_iter_break_value): new function to break a block with
the value. [ruby-dev:45132] [Feature #5895]
Tue Jan 24 12:58:41 2012 Yukihiro Matsumoto <[email protected]>
* object.c (rb_Hash): add Kernel#Hash conversion method like
Array() or Float(). a patch from Run Paint Run Run. Fix #3131
Tue Jan 24 11:38:05 2012 NARUSE, Yui <[email protected]>
* lib/uri/common.rb (URI.encode_www_form_component): initialize on
requiring to support JRuby, which runs parallel multithreads.
[ruby-core:42222] [Bug #5925]
* lib/uri/common.rb (URI.decode_www_form_component): initialize on
Mon Jan 23 20:33:11 2012 Jason Kay <[email protected]>
* lib/net/http.rb (Net::HTTP#connect): Writing entire packet at
once to avoid incomplete transmission. Current code using
writeline was causing sub-optimal conversing with a proxy due to
the connect tunnel request headers being split over multiple
packets. The modification I made allows the connect request to
be written as one packet, avoiding problems and optimizing the
conversation.
https://github.com/ruby/ruby/pull/72
[Feature #5460]
Mon Jan 23 17:06:17 2012 NARUSE, Yui <[email protected]>
* lib/uri/mailto.rb (URI::MailTo.build): follow Array#to_s change of
Ruby 1.9; use Array#join. [Bug #5840]
Mon Jan 23 16:42:28 2012 NARUSE, Yui <[email protected]>
* io.c (extract_binmode): raise an exception if binmode/textmode
is specified with both vmode and opthash.
[ruby-core:42199] [Bug #5918]
Mon Jan 23 16:35:27 2012 NARUSE, Yui <[email protected]>
* io.c (rb_io_extract_modeenc): set ASCII-8BIT if binmode is specified
with opthash. [ruby-core:42197] [Bug #5917]
Mon Jan 23 10:08:00 2012 Kenta Murata <[email protected]>
* test/cgi/test_cgi_util.rb (test_cgi_escape_preserve_encoding):
add a test for CGI::escape to preserve encoding.
* test/cgi/test_cgi_util.rb (test_cgi_unescape_preserve_encoding):
add a test for CGI::unescape to preserve encoding.
Mon Jan 23 00:45:34 2012 Akinori MUSHA <[email protected]>
* misc/rdoc-mode.el (rdoc-imenu-create-index): Add imenu support
to rdoc-mode.
* misc/rdoc-mode.el (rdoc-mode): Fix regexp patterns containing
"\s " where CR/LF is not supposed to match.
Sun Jan 22 15:41:26 2012 Nobuyoshi Nakada <[email protected]>
* parse.y (rb_intern3): split to registration check and new
registration.
* parse.y (rb_intern_str): make interned string shared with the
given string.
* parse.y (rb_intern3, rb_intern_str): check the coderange first.
Sat Jan 21 22:21:07 2012 Nobuyoshi Nakada <[email protected]>
* include/ruby/ruby.h (FIXNUM_P): simple flag should be int.
Sat Jan 21 21:51:19 2012 NARUSE, Yui <[email protected]>
* encoding.c (rb_enc_compatible): fix segv on symbols.
[ruby-core:42204] [Bug #5921]
Sat Jan 21 11:43:45 2012 Nobuyoshi Nakada <[email protected]>
* dir.c (dir_chdir, check_dirname): get rid of optimization-out.
Fri Jan 20 20:47:37 2012 Kenta Murata <[email protected]>
* lib/cgi/util.rb (CGI.escape): support a string with invalid byte
sequence. [Bug #5913]
* test/cgi/test_cgi_util.rb
(test_cgi_escape_with_invalid_byte_sequence): test for the above
change.
Fri Jan 20 17:37:37 2012 NARUSE, Yui <[email protected]>
* vm.c (vm_exec): remove workaround for LLVM because r34278 fixes it.
* vm_insnhelper.c (vm_call_cfunc): ditto.
Fri Jan 20 14:31:43 2012 NARUSE, Yui <[email protected]>
* lib/net/http.rb (Net::HTTP#transport_request): retry a idempotent
request automatically. [ruby-dev:45030] [Bug #5790]
[ruby-core:41821] [Bug #5813]
* lib/net/http.rb (Net::HTTP#keep_alive_timeout=): added to specify
the second to reconnect the TCP connection on Keep-Alive.
The default value is 2 second because current servers uses 2 sec.
http://ftp-admin.blogspot.com/2009/09/keepalivetimeout2.html
* lib/net/http.rb (Net::HTTP#begin_transport): reconnect TCP
connection on keep-alive timeout.
Thu Jan 19 07:53:09 2012 Tadayoshi Funaba <[email protected]>
* ext/date/date_strptime.c: moved detector of leftover.
Thu Jan 19 07:10:47 2012 Tadayoshi Funaba <[email protected]>
* ext/date/date_parse.c: [ruby-core:42173].
Wed Jan 18 18:11:02 2012 Akinori MUSHA <[email protected]>
* misc/rdoc-mode.el (rdoc-mode): Add provide so that requiring
this library succeeds.
Wed Jan 18 18:06:45 2012 Nobuyoshi Nakada <[email protected]>
* ext/curses/curses.c (cWindow, cMouseEvent): made typed data.
Wed Jan 18 12:49:15 2012 Aaron Patterson <[email protected]>
* ext/psych/lib/psych/visitors/to_ruby.rb: Added support for loading
subclasses of String with ivars
* ext/psych/lib/psych/visitors/yaml_tree.rb: Added support for dumping
subclasses of String with ivars
* test/psych/test_string.rb: corresponding tests
Wed Jan 18 10:39:47 2012 Aaron Patterson <[email protected]>
* ext/psych/lib/psych/visitors/to_ruby.rb: Added ability to load array
subclasses with ivars.
* ext/psych/lib/psych/visitors/yaml_tree.rb: Added ability to dump
array subclasses with ivars.
* test/psych/test_array.rb: corresponding tests
Tue Jan 17 17:18:41 2012 Nobuyoshi Nakada <[email protected]>
* configure.in (SPT_TYPE): enable as SPT_REUSEARGV on Darwin.
* missing/setproctitle.c (ruby_init_setproctitle): changed prefix.
Tue Jan 17 12:32:46 2012 Nobuyoshi Nakada <[email protected]>
* gc.c (aligned_malloc, aligned_free): covered missing defined
operators and fixes for cygwin.
Tue Jan 17 10:54:46 2012 Nobuyoshi Nakada <[email protected]>
* st.c (do_hash): it's the time to remove cast to unsigned int.
Tue Jan 17 07:30:12 2012 NARUSE, Yui <[email protected]>
* st.c (unpack_entries): Fix r34310: on unpacking, the position of
a hash must be do_hash-ed value.
* st.c (add_packed_direct): ditto.
Mon Jan 16 16:41:53 2012 Nobuyoshi Nakada <[email protected]>
* lib/optparse.rb (Regexp): fix incorrect options when casting to
a Regexp, and suppress encoding option warnings.
https://github.com/ruby/ruby/pull/82
Mon Jan 16 11:22:38 2012 Nobuyoshi Nakada <[email protected]>
* win32/win32.c (rb_chsize): no need to get the current file size.
Mon Jan 16 00:41:33 2012 Sokolov Yura <[email protected]>
* st.c: st use function instead of macro. In my current
environment (Ubuntu 11.04 32bit gcc-4.5.2) it gives 4%
performance improvement.
https://github.com/ruby/ruby/pull/77
Sun Jan 15 14:09:48 2012 NARUSE, Yui <[email protected]>
* object.c (rb_inspect): raise the result is not compatible with
the default external encoding. [ruby-core:42095] [Bug #5848]
If the default external encoding is ASCII compatible, the encoding of
inspected result must be compatible with it.
If the default external encoding is ASCII incompatible,
the result must be ASCII only.
Sun Jan 15 13:21:50 2012 NARUSE, Yui <[email protected]>
* ext/json/parser/parser.rl (json_string_unescape): workaround fix
for over optimization of GCC 4.7. [ruby-core:42085] [Bug #5888]
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51862
Sat Jan 14 22:24:09 2012 Nobuyoshi Nakada <[email protected]>
* ext/dl/callback/mkcallback.rb (gencallback): suppress unused
variables.
Sat Jan 14 21:56:43 2012 Nobuyoshi Nakada <[email protected]>
* iseq.c (iseq_data_to_ary): check line info table boundary. line
number 0 means no line number info is needed. [ruby-dev:45130]
[Bug #5894]
Sat Jan 14 18:24:13 2012 CHIKANAGA Tomoyuki <[email protected]>
* error.c (exc_equal): clear rb_thread_t::errinfo when ignore
an exception under rb_protect(). [ruby-core:41979] [Bug #5865]
Sat Jan 14 12:02:55 2012 Nobuyoshi Nakada <[email protected]>
* sprintf.c (rb_enc_vsprintf): relaxed the restriction. since the
implementation deeply depends on plain char, so wchar_t based
encodings are not supported.
Sat Jan 14 12:00:20 2012 Nobuyoshi Nakada <[email protected]>
* error.c (exc_equal): ignore exceptions during implicit
conversion. [ruby-core:41979] [Bug #5865]
Sat Jan 14 05:58:54 2012 Eric Hodel <[email protected]>
* io.c (rb_io_s_read): Fix formatting of open_args comment. Reported
by Adam Prescott.
Fri Jan 13 18:41:19 2012 Nobuyoshi Nakada <[email protected]>
* sprintf.c (rb_enc_vsprintf): can be used for ASCII compatible
encodings only.
Fri Jan 13 18:29:06 2012 Nobuyoshi Nakada <[email protected]>
* thread.c (rb_mutex_unlock_th): simplified.
* thread.c (rb_barrier_waiting): fix potential overflows.
Fri Jan 13 17:23:38 2012 Nobuyoshi Nakada <[email protected]>
* load.c (load_unlock): update loading table at once.
Fri Jan 13 16:44:45 2012 Nobuyoshi Nakada <[email protected]>
* error.c (exc_equal): try implicit conversion for delegator.
[ruby-core:41979] [Bug #5865]
Fri Jan 13 03:46:53 2012 Akinori MUSHA <[email protected]>
* lib/shellwords.rb (Shellwords#shellescape): shellescape() now
stringifies the given object using to_s.
* lib/shellwords.rb (Shellwords#shelljoin): shelljoin() accepts
non-string objects in the given array, each of which is
stringified using to_s.
* lib/shellwords.rb: Fix rdoc markups.
Fri Jan 13 03:38:36 2012 Akinori MUSHA <[email protected]>
* lib/shellwords.rb (Shellwords#shellsplit): Fix a bug where
consecutive backslashes in double quotes are all removed except
the one at the tail.
Fri Jan 13 03:28:00 2012 Luis Lavena <[email protected]>
* ext/socket/extconf.rb (if ipv6): only define _WIN32_WINNT if was not
previously defined. This solve warnings with multiple defines in
command line with GCC 4.6.1
Thu Jan 12 18:44:31 2012 Nobuyoshi Nakada <[email protected]>
* lib/mkmf.rb: fix r33904 and revert r33905. initialize global
variables with init_mkmf before initializing constants.
[ruby-dev:45124] [Bug #5879]
Thu Jan 12 13:51:00 2012 NARUSE, Yui <[email protected]>
* cont.c (cont_restore_0): prevent optimizing out `sp'. sp is used for
reserving a memory space with ALLOCA_N for restoring machine stack
stored in cont->machine_stack, but clang optimized out it (and
maybe #5851 is also caused by this).
This affected TestContinuation#test_check_localvars.
* cont.c (cont_restore_1): revert workaround introduced in r32201.
Thu Jan 12 02:14:43 2012 Ayumu AIZAWA <[email protected]>
* object.c: Added examples for Object#is_a? and
Object#instance_of? patched from Manoj Kumar.
[Bug #5880] [ruby-core:42057]
Thu Jan 12 00:57:48 2012 Kazuhiro NISHIYAMA <[email protected]>
* lib/mkmf.rb: verbose-mode can use by RM, RMDIRS, etc.
(e.g. make V=1 realclean)
Wed Jan 11 23:40:21 2012 Naohisa Goto <[email protected]>
* string.c (rb_str_concat): set array element after definition
to fix compile error with Fujitsu C Compiler 5.6 on Solaris 10
on Sparc. [Bug #5878] [ruby-dev:45123]
Wed Jan 11 22:52:51 2012 CHIKANAGA Tomoyuki <[email protected]>
* gc.c (ruby_mimmalloc): don't set allocated size to header.
ruby_mimmalloc() doesn't increment allocated_size/allocations and
decrement them in ruby_xfree() cause inconsistency.
* gc.c (ruby_xfree): don't decrement allocated_size/allocations if
allocated size record is 0.
Wed Jan 11 22:36:43 2012 CHIKANAGA Tomoyuki <[email protected]>
* test/readline/test_readline.rb (test_completion_proc_empty_result):
ensure clearance of Readline's line_buffer after the test.
Tue Jan 10 21:57:38 2012 Hiroshi Shirosaki <[email protected]>
* ext/dbm/dbm.c (Init_dbm): fix a build error on mswin32.
use `extern __declspec(dllimport)` for dll link with VC.
[ruby-core:41996] [Bug #5869]
Tue Jan 10 15:31:55 2012 NARUSE, Yui <[email protected]>
* vm.c (vm_exec): refix r34162; suppress warning and add description.
Tue Jan 10 15:13:58 2012 NARUSE, Yui <[email protected]>
* ext/readline/readline.c (readline_attempted_completion_function):
use rb_memerror().
Tue Jan 10 12:49:42 2012 NARUSE, Yui <[email protected]>
* gc.c: in fact, i686-linux doesn't need to define _XOPEN_SOURCE 600.
Tue Jan 10 12:44:11 2012 NARUSE, Yui <[email protected]>
* gc.c (ruby_mimmalloc): defined for objects need not rb_objspace,
but should return pointer suitable for ruby_xfree;
main vm and main thread.
patched by Sokolov Yura. https://github.com/ruby/ruby/pull/79
* internal.h: ditto.
* vm.c (Init_BareVM): use ruby_mimmalloc.
* ext/dl/cfunc.c: #include <ruby/util.h>.
* ext/syslog/syslog.c: use xfree because it is allocated by
ruby_strdup.
Tue Jan 10 12:13:56 2012 Kazuhiro NISHIYAMA <[email protected]>
* ext/readline/readline.c (readline_attempted_completion_function):
fix compile error.
Tue Jan 10 10:41:11 2012 Nobuyoshi Nakada <[email protected]>
* ext/readline/readline.c (readline_attempted_completion_function):
empty completion result does not mean memory error.
Tue Jan 10 02:19:22 2012 CHIKANAGA Tomoyuki <[email protected]>
* test/ruby/test_io.rb (test_autoclose_true_closed_by_finalizer,
test_autoclose_true_closed_by_finalizer): skip if IO objects are
not recycled yet. [ruby-dev:45098] [Bug #5850]
Tue Jan 10 00:41:28 2012 CHIKANAGA Tomoyuki <[email protected]>
* lib/tempfile.rb (Tempfile#_close): clear @tempfile and @data[1] even
when exception is raised at @tempfile.close. [ruby-dev:45113]
* lib/tempfile.rb (Tempfile#unlink): fix a typo.
Tue Jan 10 00:32:17 2012 CHIKANAGA Tomoyuki <[email protected]>
* gc.c (run_finalizer): clear rb_thread_t::errinfo when ignore
an exception under rb_protect(). [ruby-dev:45113]
Mon Jan 9 23:37:43 2012 CHIKANAGA Tomoyuki <[email protected]>
* ext/readline/readline.c (readline_attempted_completion_function):
fix typos.
Mon Jan 9 20:55:34 2012 Narihiro Nakamura <[email protected]>
* gc.c : don't embed struct heaps_slot to a heap block because it
can causes copy-on-write of memory page on heap block when its
free_next is rewritten.
Mon Jan 9 20:26:33 2012 Tanaka Akira <[email protected]>
* ext/pathname/pathname.c (path_entries): add document suggested by
the thread [ruby-core:41959] [Bug #5859].
Mon Jan 9 20:14:13 2012 Tanaka Akira <[email protected]>
* ext/socket/lib/socket.rb (family_addrinfo): don't require protocol
equality. For example, protocol 0 and IPPROTO_TCP is not problem
for TCP.
Mon Jan 9 20:08:52 2012 Tanaka Akira <[email protected]>
* ext/socket/lib/socket.rb (family_addrinfo): return the given
addrinfo object.
Patch by Ippei Obayashi. [ruby-dev:45095] [Bug #5845]
Mon Jan 9 19:40:20 2012 NAKAMURA Usaku <[email protected]>
* test/zlib/test_zlib.rb (TestZlibGzipWriter#test_writer_wrap): set
binmode explicitly.
Mon Jan 9 14:42:41 2012 Narihiro Nakamura <[email protected]>
* gc.c: free_slots is changed Singly linked list. clear
free_slots before sweep.
Mon Jan 9 07:46:17 2012 NARUSE, Yui <[email protected]>
* gc.c: i686-linux needs to define _XOPEN_SOURCE 600 for posix_memalign.
Mon Jan 9 04:24:59 2012 NARUSE, Yui <[email protected]>
* gc.c (rb_objspace_free): global_List is allocated with xmalloc.
patched by Sokolov Yura. https://github.com/ruby/ruby/pull/78
* dln_find.c: remove useless replacement of free.
* ext/readline/readline.c (readline_attempted_completion_function):
strings for readline must allocated with malloc.
* process.c (run_exec_dup2): use free; see also r20950.
* re.c (onig_new_with_source): use malloc for oniguruma.
* vm.c (ruby_vm_destruct): use free for VMs.
* vm.c (thread_free): use free for threads.
Mon Jan 9 04:24:59 2012 NARUSE, Yui <[email protected]>
* dln_find.c: remove useless replacement of free.
* ext/readline/readline.c (filename_completion_proc_call):
matches should use xfree.
* ext/readline/readline.c (username_completion_proc_call): ditto.
Mon Jan 9 01:12:35 2012 NARUSE, Yui <[email protected]>
* numeric.c (rb_enc_uint_char): raise RangeError when added codepoint
is invalid. [Feature #5855] [Bug #5863] [Bug #5864]
* string.c (rb_str_concat): ditto.
* string.c (rb_str_concat): set encoding as ASCII-8BIT when the string
is US-ASCII and the argument is an integer greater than 127.
* regenc.c (onigenc_mb2_code_to_mbclen): rearrange error code.
* enc/euc_jp.c (code_to_mbclen): ditto.
* enc/shift_jis.c (code_to_mbclen): ditto.
Sun Jan 8 20:31:45 2012 Narihiro Nakamura <[email protected]>
* gc.c : consider header bytes which are used by malloc.
Sun Jan 8 11:54:43 2012 Narihiro Nakamura <[email protected]>
* gc.c (aligned_free): support MinGW. Patch by Hiroshi Shirosaki.
Sun Jan 8 11:43:05 2012 Narihiro Nakamura <[email protected]>
* gc.c (slot_sweep): add a assertion instead of a debug print.
Sun Jan 8 01:18:19 2012 Ayumu AIZAWA <[email protected]>
* test/-ext-/old_thread_select/test_old_thread_select.rb:
avoid platform bug. [Bug #5858] [ruby-dev:45108]
Sun Jan 8 00:46:34 2012 KOSAKI Motohiro <[email protected]>
* gc.c: get rid of implicit narrowing conversion.
Sun Jan 8 00:10:10 2012 NARUSE, Yui <[email protected]>
* configure.in: check posix_memalign(3) and memalign(3).
* gc.c (aligned_malloc): use configure's result instead of
_POSIX_C_SOURCE and _XOPEN_SOURCE because they can't be used
to check availability at least on FreeBSD.
Sat Jan 7 22:25:50 2012 Narihiro Nakamura <[email protected]>
* gc.c: use Bitmap Marking algorithm to avoid copy-on-write of
memory pages. See [ruby-dev:45085] [Feature #5839]
[ruby-core:41916].
* include/ruby/ruby.h : FL_MARK rename to FL_RESERVED1.
* node.h : ditto.
* debug.c : ditto.
* object.c (rb_obj_clone): FL_MARK move to a bitmap.
* class.c (rb_singleton_class_clone): ditto.
Sat Jan 7 00:47:07 2012 CHIKANAGA Tomoyuki <[email protected]>
* configure.in: always define CANONICALIZATION_FOR_MATHN.
[ruby-dev:45100] [Bug #5852]
Fri Jan 6 23:11:20 2012 Ayumu AIZAWA <[email protected]>
* include/ruby/version.h: RUBY_API_VERSION 2.0.0
Fri Jan 6 12:24:11 2012 NARUSE, Yui <[email protected]>
* object.c (rb_inspect): raises Encoding::CompatibilityError if the
result is incompatible with the default external encoding.
[ruby-core:41931] [Bug #5848]
Thu Jan 5 15:26:15 2012 NAKAMURA Usaku <[email protected]>
* win32/win32.c (check_valid_dir): strict checking of root.
GetDriveType() succeeds with non root directory as the argument,
even if MSDN says that the API needs the root directory.
this patch fixes a failure of test/ruby/test_file_exhaustive.rb.
Thu Jan 5 12:15:55 2012 NARUSE, Yui <[email protected]>
* file.c (rb_file_join): separator is appended by array length - 1
times. patched by Benoit Daloze [ruby-core:41901] [Bug #5841]
Thu Jan 5 11:47:54 2012 NARUSE, Yui <[email protected]>
* lib/uri/common.rb (URI::Parser#initialize_regexp):
use \A \z instead of ^ $. [Bug #5843]
Wed Jan 4 17:55:53 2012 Ayumu AIZAWA <[email protected]>
* array.c (rb_ary_sample): add example for Array#sample
based on patch from https://github.com/ruby/ruby/pull/74
Wed Jan 4 14:24:33 2012 Nobuyoshi Nakada <[email protected]>
* string.c (str_nth_len): count ascii-only run at the end. this
bug appears only when single-byte-optimization is disabled due
to unknown coderange. [ruby-core:41896] [Bug #5836]
Wed Jan 4 11:32:07 2012 NAKAMURA Usaku <[email protected]>
* win32/win32.c (check_valid_dir): special case for a root directory.
Reported by Masateru OKAMOTO at [Bug #5819].
Wed Jan 4 00:19:54 2012 Kouhei Sutou <[email protected]>
* lib/rexml/parsers/baseparser.rb: use private instead of _xxx
method name. This is Ruby code not Python code.
refs #5696
Tue Jan 3 23:57:37 2012 Ayumu AIZAWA <[email protected]>
* lib/rexml/parsers/baseparser.rb: rexml BaseParser uses
instance_eval unnecessarily on listener add.
patch from Charles Nutter. [Bug #5696] [ruby-core:41437]
Tue Jan 3 20:44:13 2012 Ayumu AIZAWA <[email protected]>
* README: add comment for Git user. patch from Arun Agrawal.
* README.ja: ditto.
Tue Jan 3 15:58:22 2012 Ayumu AIZAWA <[email protected]>
* thread.c: changed documentation for "thread-local" variables.
patch from Julien Ammous.
Tue Jan 3 15:50:12 2012 Ayumu AIZAWA <[email protected]>
* process.c: Fix typo. patch from Aviv Ben-Yosef.
Tue Jan 3 13:43:37 2012 KOSAKI Motohiro <[email protected]>
* tool/merger.rb: allow r0123 style revision number.
Tue Jan 3 11:17:55 2012 KOSAKI Motohiro <[email protected]>
* tool/merger.rb (#version_up): version.h date should be Japanese
locale date.
Mon Jan 2 22:08:00 2012 Akinori MUSHA <[email protected]>
* tool/file2lastrev.rb (VCS::detect): Add support for Subversion
1.7 which adopted a whole new working directory structure.
* tool/file2lastrev.rb (VCS::detect): Simply use .each instead of
.sort.reverse_each which looks too arbitrary. If you want SVN
to be tried first, then you just have to register it first as it
is right now.
Mon Jan 2 20:53:36 2012 Tanaka Akira <[email protected]>
* lib/securerandom.rb (random_bytes): use IO#read instead of
IO#readpartial to make the intent more clear.
Mon Jan 2 15:26:39 2012 Kazuki Tsujimoto <[email protected]>
* test/ruby/test_object.rb (test_send_with_block): add a normal case.
Mon Jan 2 15:18:54 2012 Kazuki Tsujimoto <[email protected]>
* test/ruby/test_object.rb (test_send_with_block): moved from
bootstraptest/test_flow.rb.
Mon Jan 2 15:10:11 2012 Kazuhiro NISHIYAMA <[email protected]>
* lib/test/unit/parallel.rb: use pack("m0") instead of
pack("m").gsub("\n","").
* lib/test/unit.rb (Test::Unit::Runner::Worker#run): ditto.
Mon Jan 2 15:05:09 2012 Kazuhiro NISHIYAMA <[email protected]>
* lib/test/unit.rb (Test::Unit::Runner::Worker#run): use
File.basename with suffix instead of gsub.
Mon Jan 2 14:55:28 2012 Kazuhiro NISHIYAMA <[email protected]>
* lib/test/unit.rb (Test::Unit::Runner#_run_parallel): find may
return nil and nil can not dup.
Sun Jan 1 12:23:10 2012 Akinori MUSHA <[email protected]>
* lib/shellwords.rb (Shellwords#shellescape): Drop the //n flag
that only causes warnings with no real effect. [Bug #5637]
Sat Dec 31 06:28:37 2011 NARUSE, Yui <[email protected]>
* thread.c (rb_barrier_waiting): save the number of waiting threads
in RBASIC()->flags. [ruby-dev:45002] [Bug #5768]
* thread.c (rb_barrier_wait): increment and decrement around
rb_mutex_lock, and use rb_barrier_waiting().
* thread.c (rb_barrier_release): use rb_barrier_waiting().
* thread.c (rb_barrier_destroy): ditto.
Mon Dec 26 17:20:10 2011 NARUSE, Yui <[email protected]>
* vm.c (vm_exec): add guard to prevent optimization for LLVM clang.
Fri Dec 30 17:01:12 2011 Ayumu AIZAWA <[email protected]>
* vm_eval.c (rb_f_send): fix obj.send() documentation issue.
[Bug #5125] [ruby-core:38633]
Thu Dec 29 22:36:16 2011 CHIKANAGA Tomoyuki <[email protected]>
* lib/test/unit.rb (Test::Unit::Runner::Worker#_run_parallels): fix
premature exit when all workers' status are :ready or :prepare.
[ruby-dev:45061] [Bug #5822]
Thu Dec 29 01:51:13 2011 CHIKANAGA Tomoyuki <[email protected]>
* include/ruby/ruby.h: fix #error pragma. LLP64 platform is supported.
* include/ruby/st.h: ditto.
Wed Dec 28 11:22:45 2011 Nobuyoshi Nakada <[email protected]>
* lib/fileutils.rb (FileUtils::Entry_#entries): use utility method
instead of typoed regexp. [ruby-core:41829] [Bug #5817]
Wed Dec 28 02:08:04 2011 CHIKANAGA Tomoyuki <[email protected]>
* vm_insnhelper.c (unknown_keyword_error): add GC guard to prevent
intermediate object from GC.
Tue Dec 27 22:34:54 2011 Shota Fukumori <[email protected]>
* lib/test/unit.rb (Worker#close): "closing IO if IO is closed"
should be "closing IO if IO isn't closed"
Tue Dec 27 22:04:27 2011 Nobuyoshi Nakada <[email protected]>
* st.c (st_update): new function to lookup the given key and
update the value. [ruby-dev:44998]
Tue Dec 27 21:17:33 2011 Nobuyoshi Nakada <[email protected]>
* node.h (rb_args_info): change pre_args_num and post_args_num as
int, to match with rb_iseq_t.
* parse.y (new_args_gen): check overflow.
Mon Dec 26 22:38:35 2011 Yusuke Endoh <[email protected]>
* vm_insnhelper.c (unknown_keyword_error): make it kind a error
message when unknown keyword is given. It require more work.
See [ruby-core:40518] and [ruby-core:40541] in detail.
Mon Dec 26 22:31:07 2011 Yusuke Endoh <[email protected]>
* vm_core.h (struct rb_iseq_struct), compile.c (iseq_set_arguments),
iseq.c (rb_iseq_parameters), vm_insnhelper.c
(vm_callee_setup_arg_complex): support Method#parameters for keyword
arguments. The provisional spec is what Benoit Daloze proposed.
[ruby-core:40541]
* test/ruby/test_keyword.rb: add a test for above.
Mon Dec 26 22:15:27 2011 Yusuke Endoh <[email protected]>
* vm_core.h (struct rb_iseq_struct), compile.c (iseq_set_arguments,
iseq_compile_each), vm_insnhelper.c (vm_callee_setup_arg_complex):
implement keyword arguments. See [ruby-core:40290]
The feature is promised to be included in 2.0, but the detail spec
is still under discussion; this commit is a springboard for further
discussion. Please try it and give us feedback.
This commit includes fixes for some problems reported by Benoit
Daloze <eregontp AT gmail.com> [ruby-core:40518] and Marc-Andre
Lafortune <ruby-core-mailing-list AT marc-andre.ca>
[ruby-core:41772].
* iseq.c (iseq_free, prepare_iseq_build): bookkeeping.
* test/ruby/test_keyword.rb: add tests for keyword arguments.
* test/ripper/dummyparser.rb (class DummyParser): temporal fix for
ripper test.
Mon Dec 26 22:00:17 2011 Yusuke Endoh <[email protected]>
* node.h, node.c, parse.y: implement a parser part for keyword
arguments.
This is a preparation for keyword argument (see [ruby-core:40290]).
* gc.c (gc_mark_children): bookkeeping.
Mon Dec 26 21:03:18 2011 Yusuke Endoh <[email protected]>
* node.h, parse.y (new_args_gen), compile.c (iseq_set_arguments): use
struct rb_args_info instead of NODEs.
This is a preparation for keyword argument (see [ruby-core:40290]).
* node.c (dump_node), gc.c (gc_mark_children, obj_free): bookkeeping.
Mon Dec 26 20:59:51 2011 Yusuke Endoh <[email protected]>
* node.h, parse.y (lambda, f_larglist): remove NEW_LAMBDA hack.
This is a preparation for keyword argument (see [ruby-core:40290]).
Mon Dec 26 22:01:19 2011 Hiroshi Shirosaki <[email protected]>
* io.c (rb_sys_fail_path): move the definition.
Move above for using it in set_binary_mode_with_seek_cur().
* io.c (set_binary_mode_with_seek_cur): fix improper seek cursor.
Seeking file cursor with setting binary mode has possibility to
cause infinite loop. Fixed the bug and refined error handling.
Introduced at r34043.
And cleanups as below.
Remove unnecessary parentheses of `fptr`.
Use return value of setmode().
* test/ruby/test_io_m17n.rb
(TestIO_M17N#test_seek_with_setting_binmode): add a test for above.
[ruby-core:41671] [Bug #5714]
Mon Dec 26 17:01:14 2011 Nobuyoshi Nakada <[email protected]>
* common.mk (LIBRUBY_A): depends on main.o since r33774.
[ruby-core:41786] [Bug #5796]
Mon Dec 26 13:07:08 2011 NAKAMURA Usaku <[email protected]>
* test/ruby/test_io.rb (TestIO#test_autoclose): Tempfile.new doesn't
accept the block argument.
Mon Dec 26 13:06:52 2011 Shota Fukumori <[email protected]>
* lib/test/unit.rb: Avoid zombie processes on "--separate" option
added at r34121.
Mon Dec 26 04:01:23 2011 Martin Bosslet <[email protected]>
* ext/openssl/ossl_cipher.c: Update and complete documentation.
Sun Dec 25 23:16:11 2011 Shota Fukumori <[email protected]>
* test/testunit/test_parallel.rb (test_separate): Test for "--separate"
option (r34121)
Sun Dec 25 22:39:49 2011 Shota Fukumori <[email protected]>
* lib/test/unit.rb (_run_parallel):
New option "--separate" for test/unit; when running tests with this
option, a job process will be restarted after one test file has done.
This means all test files will run with separated process.
* lib/test/unit/parallel.rb: Fix for above. Now parallel.rb puts
"ready!" for first ready, "ready" for afters.
Sun Dec 25 00:02:15 2011 Luis Lavena <[email protected]>
* configure.in: change --with-ntver to --with-winnt-ver to be more
descriptive in the context. [ruby-core:41794]
Sat Dec 24 23:25:15 2011 Luis Lavena <[email protected]>
* configure.in: add --with-ntver option to match win32/configure.bat
functionality. Set 0x0501 as default. [ruby-core:35010]
[ruby-core:35035]
Sat Dec 24 12:38:53 2011 Nobuyoshi Nakada <[email protected]>
* proc.c (proc_call): get rid of optimization-out by clang.
* proc.c (rb_proc_call, rb_proc_call_with_block): ditto.
Sat Dec 24 10:56:32 2011 Nobuyoshi Nakada <[email protected]>
* ext/readline/readline.c (readline_readline): check if outstream
is closed to get rid of a bug of readline 6. [ruby-dev:45043]
[Bug #5803]
Sat Dec 24 06:59:49 2011 Nobuyoshi Nakada <[email protected]>
* test/readline/test_readline.rb (test_line_buffer__point): use
lambda not to exit entire method by "return". or "next" for
proc. [ruby-dev:45042] [Bug #5802]
Sat Dec 24 01:20:39 2011 Kazuki Tsujimoto <[email protected]>
* vm_eval.c (send_internal): PASS_PASSED_BLOCK_TH must be placed
just before calling rb_call0.