-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChangeLog
11974 lines (7326 loc) · 398 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
Sat Jul 9 09:25:06 2011 Eric Hodel <[email protected]>
* enumerator.c: Remove "enumeration sequenced by".
[Ruby 1.9 - Bug #4757]
Sat Jul 9 09:14:56 2011 Eric Hodel <[email protected]>
* io.c: Note that methods other than IO#gets may increase IO#lineno.
[Ruby 1.9 - Bug #4902]
Sat Jul 9 08:39:39 2011 Nobuyoshi Nakada <[email protected]>
* common.mk (RUN_OPT): disable gems.
Sat Jul 9 08:37:05 2011 Nobuyoshi Nakada <[email protected]>
* io.c (rb_io_close): close(2) on a fd which is being read by
another thread causes deadlock on Mac OS X 10.5
Fri Jul 8 21:20:39 2011 NARUSE, Yui <[email protected]>
* addr2line.c: use USE_ELF instead of __ELF__ because Solaris
doesn't define it. USE_ELF is already provided by configure.
patched by Naohisa Goto. [ruby-dev:44066] [Bug #4998]
* addr2line.h: ditto.
* vm_dump.c: ditto.
Fri Jul 8 16:40:38 2011 Nobuyoshi Nakada <[email protected]>
* ext/json/parser/parser.rl (convert_encoding): should not modify
the argument.
* ext/json/parser/parser.rl (convert_encoding): no needs to use
force_encoding.
Fri Jul 8 15:53:31 2011 Nobuyoshi Nakada <[email protected]>
* error.c (rb_bug): get rid of segfault after all threads
disposed.
Fri Jul 8 15:01:06 2011 NAKAMURA Usaku <[email protected]>
* ext/openssl/ossl.h: include openssl/e_os2.h before checking the
defition of OPENSSL_SYS_WIN32.
Fri Jul 8 14:40:39 2011 NAKAMURA Usaku <[email protected]>
* win32/win32.c (wunlink): reverted a part of r32426. it was mistakenly
mixed.
Fri Jul 8 14:29:47 2011 Narihiro Nakamura <[email protected]>
* configure.in: can't subtract void *.
Fri Jul 8 14:33:26 2011 NAKAMURA Usaku <[email protected]>
* win32/Makefile.sub (config.h): define GC_MARK_STACKFRAME_WORD.
fixed build problem of r32438. the value (30) is temporary value.
maybe it's enough by 20~24 according to my observation.
Fri Jul 8 13:47:39 2011 KOSAKI Motohiro <[email protected]>
* thread.c (rb_mutex_unlock_all): folded into
rb_threadptr_unlock_all_locking_mutexes.
* thread.c (rb_threadptr_unlock_all_locking_mutexes) ditto.
Fri Jul 8 13:36:02 2011 KOSAKI Motohiro <[email protected]>
* thread.c (thread_unlock_all_locking_mutexes): rename to
rb_threadptr_unlock_all_locking_mutexes and remove static.
* vm_core.h: add rb_threadptr_unlock_all_locking_mutexes declaration.
* thread.c (thread_start_func_2): adjust the above rename.
* eval.c (ruby_cleanup): call rb_threadptr_unlock_all_locking_mutexes
again after finalizer. [Bug #4988] [ruby-dev:44049]
Fri Jul 8 13:06:09 2011 KOSAKI Motohiro <[email protected]>
* cont.c (FIBER_MACHINE_STACK_ALLOCATION_SIZE): Fiber stack size
don't need to keep multiple number of sizeof(VALUE).
Fri Jul 8 11:39:12 2011 Nobuyoshi Nakada <[email protected]>
* common.mk (sudo-precheck): true command is not standard on
Windows.
Fri Jul 8 10:39:52 2011 KOSAKI Motohiro <[email protected]>
* thread_pthread.c (gvl_destroy): fix cond_t leak.
Fri Jul 8 09:17:59 2011 Eric Hodel <[email protected]>
* gc.c: Improve documentation
Thu Jul 7 23:35:31 2011 Narihiro Nakamura <[email protected]>
* gc.c: change water_mark value that may call
gc_mark(lev <= GC_LEVEL_MAX) in gc_mark().
In ruby_stack_check(), water_mark is a value that may call some
C function. Fixes Bug #3781
* configure.in: define GC_MARK_STACKFRAME_WORD that approximate
size of gc_mark() and gc_mark_children() stackframes.
Thu Jul 7 17:55:05 2011 NAKAMURA Usaku <[email protected]>
* test/testunit/test_parallel.rb (TestParallelWorker#teardown): wait
the child process even if the communication pipe is broken.
Thu Jul 7 15:44:42 2011 Nobuyoshi Nakada <[email protected]>
* encoding.c (rb_enc_set_index, rb_enc_associate_index): should
check if frozen.
* parse.y (rb_intern3), ruby.c (process_options, ruby_script):
defer freezing after associating encodings.
Thu Jul 7 15:16:51 2011 NARUSE, Yui <[email protected]>
* numeric.c (rb_num2ull): use own switch sentence.
Current implementation can't convert 18446744073709551615.
Thu Jul 7 06:56:15 2011 NARUSE, Yui <[email protected]>
* cont.c (FIBER_STACK_FLAGS): workaround fix for r32420 on FreeBSD.
Thu Jul 7 06:46:12 2011 Eric Hodel <[email protected]>
* benchmark/driver.rb: Add difference column to report that averages
across all runs of a benchmark. [Ruby 1.9 - Feature #4982]
Thu Jul 7 06:19:38 2011 Eric Hodel <[email protected]>
* lib/rubygems.rb: Reduce requires to improve `make benchmark`.
[#4962]
* lib/rubygems/specification.rb: Delay initialization of rubygems
until require is called.
Thu Jul 7 04:31:26 2011 Nobuyoshi Nakada <[email protected]>
* parse.y (arg): rescue_mod is in inverse order from other
modifiers. patched by michael.j.edgar AT dartmouth.edu at
[ruby-core:36248]. fixed #4716.
Thu Jul 7 00:40:16 2011 NAKAMURA Usaku <[email protected]>
* win32/win32.c (kill): check that the process exited or not before
terminating it. [Bug #4943]
Wed Jul 6 23:13:19 2011 Yukihiro Matsumoto <[email protected]>
* parse.y (opt_call_args): allow trailing comma after assoc
argument e.g. 'foo(bar:1,)'. fixed #3456
Wed Jul 6 22:11:12 2011 Shota Fukumori <[email protected]>
* test/cgi/test_cgi_header.rb(test_cgi_header_nph): Validate date in
"Date:" header
Wed Jul 6 21:29:33 2011 KOSAKI Motohiro <[email protected]>
* cont.c (fiber_machine_stack_alloc): cleanup pointer arithmetic.
"size/sizeof(VALUE)" is ugly and easy confusing.
* cont.c (fiber_initialize_machine_stack_context): ditto.
Wed Jul 6 21:24:53 2011 KOSAKI Motohiro <[email protected]>
* cont.c (fiber_machine_stack_alloc): fix mprotect misuse. A stack
guard page should have PROT_NONE.
* cont.c (fiber_initialize_machine_stack_context):
th->machine_stack_maxsize shouldn't be included guard pages size.
[Bug #4983][ruby-dev:44043]
Wed Jul 6 21:23:38 2011 KOSAKI Motohiro <[email protected]>
* cont.c (fiber_machine_stack_alloc): use MAP_STACK if it's provided.
Wed Jul 6 21:22:16 2011 KOSAKI Motohiro <[email protected]>
* cont.c (fiber_machine_stack_alloc): use MAP_FAILED instead of -1.
Wed Jul 6 21:21:05 2011 KOSAKI Motohiro <[email protected]>
* cont.c (fiber_machine_stack_alloc): remove unnecessary cast.
Wed Jul 6 18:10:13 2011 Shota Fukumori <[email protected]>
* test/cgi/test_cgi_header.rb(test_cgi_header_nph): Adding space after
comma.
* test/cgi/test_cgi_header.rb(test_cgi_header_nph): Remove variable
`now`. Suppress warning.
Wed Jul 6 12:18:09 2011 Shota Fukumori <[email protected]>
* test/cgi/test_cgi_header.rb(test_cgi_header_nph): Fix bug depends to
time. The test fails if time past 1 second in line 136-145
Tue Jul 5 15:28:04 2011 Nobuyoshi Nakada <[email protected]>
* parse.y (parser_here_document): should dispatch heredoc_end
scanner event on an empty here document. fixed Bug#4543.
Tue Jul 5 13:49:26 2011 Yusuke Endoh <[email protected]>
* addr2line.c: fix r32407 to check HAVE_ALLOCA_H.
Tue Jul 5 14:05:43 2011 NARUSE, Yui <[email protected]>
* lib/webrick/httpauth/digestauth.rb (_authenticate):
Literal texts in HTTP ABNF is case-insensitive (RFC2616 2.1),
and a ample implementation in RFC2617 also ignores the case
of algorithms. So now this ignores those cases.
[ruby-dev:43965] [Feature #4936]
* lib/webrick/httpauth/digestauth.rb (initialize):
Because of above, opera_hack is useless and removed.
Tue Jul 5 01:30:01 2011 Yusuke Endoh <[email protected]>
* thread_pthread.c (native_sleep): cut the waiting time up to
100,000,000 because Solaris cond_timedwait() return EINVAL if an
argument is greater than current_time + 100,000,000. This is
considered as a kind of spurious wakeup. The caller to native_sleep
should care about spurious wakeup.
Tue Jul 5 01:24:26 2011 Yusuke Endoh <[email protected]>
* cont.c: disable FIBER_USE_NATIVE on Solaris because resuming any
Fiber caused SEGV. I haven't follow up the issue deeply, but it
works when disabling the feature.
Tue Jul 5 01:22:46 2011 Yusuke Endoh <[email protected]>
* addr2line.c: include <alloca.h> to fix a build issue on Solaris.
Tue Jul 5 00:49:05 2011 CHIKANAGA Tomoyuki <[email protected]>
* ext/coverage/coverage.c: resurrect r32071 + add GC guard for
rb_coverages. [ruby-core:37352] [Bug #4927]
[ruby-core:36539] [Feature #4796]
* test/coverage/test_coverage.rb resurrect r32071.
Mon Jul 4 22:24:46 2011 KOSAKI Motohiro <[email protected]>
* thread_pthread.c (get_stack): For NetBSD/FreeBSD, use
pthread_attr_getstack() if possible. and, remove an assumption
of stack growing direction.
Mon Jul 4 20:42:31 2011 Yusuke Endoh <[email protected]>
* ext/coverage/coverage.c: revert r32071. The commit caused SEGV on
some minor nonfree OS. I have no means of debugging the bug. My
personal opinion is that such OS should be unsupported unless there
is an active maintainer. [ruby-core:37352]
* test/coverage/test_coverage.rb: ditto.
Mon Jul 4 07:14:12 2011 NARUSE, Yui <[email protected]>
* thread_pthread.c (get_stack): the return address of get_stack
must be the highest address of the current thread's stack.
Mon Jul 4 06:37:22 2011 Koichi Sasada <[email protected]>
* include/ruby/intern.h, thread_pthread.c (rb_reserved_fd_p,
RB_RESERVED_FD_P): added. This C API is to limit to access
fds which are used by RubyVM internal. In this version of
CRuby, return 1 if fd is communication pipe.
If your application needs to close all file descriptors to
present resource leak, skip internal fds using this C API.
We also define a macro RB_RESERVED_FD_P(fd). So you can write
#ifndef RB_RESERVED_FD_P
#define RB_RESERVED_FD_P(fd) 0
#endif
for Ruby 1.9.2 or previous version to write compatible extensions.
See [ruby-core:37727]
* thread_win32.c (rb_reserved_fd_p): added (return 0 for any fds).
* io.c (rb_io_initialize): raise ArgumentError if given fd is reserved by Ruby.
Sun Jul 3 23:43:56 2011 Yuki Sonoda (Yugui) <[email protected]>
* ext/extmk.rb (extmake): suppresses outputs from extconf.rb.
(extmake) warns a failure in extconf.rb.
Sun Jul 3 13:44:51 2011 Nobuyoshi Nakada <[email protected]>
* array.c (ary_reject_bang): should not remove elements which are
not yielded. [Bug #2545]
Sun Jul 3 06:10:26 2011 KOSAKI Motohiro <[email protected]>
* thread_pthread.c (get_stack): pthread_attr_getstack() doesn't
return stack start address, but stack base address. Thus,
we need to add stack size for getting stack start address.
And, we don't have to decrease guard size twice.
* thread_pthread.c (thread_start_func_1): don't use inaccurate
stack start guess if native_thread_init_stack() can be used.
[Bug #1813] [ruby-core:24540]
Sun Jul 3 04:50:08 2011 KOSAKI Motohiro <[email protected]>
* thread_pthread.c (get_stack): add to a care of guard page on Mac
OS X. [Bug #1813] [ruby-core:24540]
* signal.c (ruby_signal): SIGBUS use alternative stack too.
* signal.c (sigbus): On Mac, thread stack overflow makes SIGBUS
instead of SIGSEGV. thus, added stackoverflow check.
* signal.c (default_handler): get rid of compilation warning.
* signal.c (Init_signal): ditto.
Sat Jul 02 08:59:20 2011 Martin Bosslet <[email protected]>
* test/openssl/test_ocsp.rb
* test/openssl/test_x509_cert.rb: Perform SHA-256 tests only if
supported by the available OpenSSL version. Versions < 0.9.8 don't
support it. [ruby-core:37724]
Sat Jul 2 07:17:45 2011 Nobuyoshi Nakada <[email protected]>
* array.c (rb_ary_reject_bang, rb_ary_delete_if): rejected
elements should be removed. fixed [Bug #2545]
Sat Jul 2 01:57:00 2011 Kenta Murata <[email protected]>
* NEWS: remove a description of Kernel#respond_to? because it has
been reverted at revision 28564.
Sat Jul 2 00:58:00 2011 Kenta Murata <[email protected]>
* NEWS: describe a change of multiplication of Bignum.
Fri Jul 1 18:52:31 2011 KOSAKI Motohiro <[email protected]>
* benchmark/bm_app_erb.rb: increase loop count. too short
measurement time makes less accuracy.
* benchmark/bm_app_factorial.rb: ditto.
* benchmark/bm_app_mandelbrot.rb: ditto.
* benchmark/bm_app_strconcat.rb: ditto.
* benchmark/bm_io_file_create.rb: ditto.
* benchmark/bm_io_file_read.rb: ditto.
* benchmark/bm_io_file_write.rb: ditto.
* benchmark/bm_so_concatenate.rb: ditto.
* benchmark/bm_so_lists.rb: ditto.
* benchmark/bm_so_matrix.rb: ditto.
* benchmark/bm_so_random.rb: ditto.
* benchmark/bm_so_sieve.rb: ditto.
* benchmark/bm_vm_thread_mutex1.rb: ditto.
* benchmark/bm_vm_thread_mutex2.rb: ditto.
* benchmark/bm_vm_thread_mutex3.rb: ditto.
* benchmark/bm_vm1_block.rb: cleanup.
* benchmark/bm_vm1_const.rb: cleanup.
* benchmark/bm_vm1_ensure.rb: cleanup.
* benchmark/bm_vm1_ivar.rb: cleanup.
* benchmark/bm_vm1_length.rb: cleanup.
* benchmark/bm_vm1_neq.rb: cleanup.
* benchmark/bm_vm1_not.rb: cleanup.
* benchmark/bm_vm1_rescue.rb: cleanup.
* benchmark/bm_vm1_simplereturn.rb: cleanup.
* benchmark/bm_vm1_swap.rb: cleanup.
* benchmark/bm_vm2_array.rb: cleanup.
* benchmark/bm_vm2_case.rb: cleanup.
* benchmark/bm_vm2_defined_method.rb: cleanup.
* benchmark/bm_vm2_eval.rb: cleanup.
* benchmark/bm_vm2_method.rb: cleanup.
* benchmark/bm_vm2_mutex.rb: cleanup.
* benchmark/bm_vm2_poly_method.rb: cleanup.
* benchmark/bm_vm2_poly_method_ov.rb: cleanup.
* benchmark/bm_vm2_proc.rb: cleanup.
* benchmark/bm_vm2_regexp.rb: cleanup.
* benchmark/bm_vm2_send.rb: cleanup.
* benchmark/bm_vm2_super.rb: cleanup.
* benchmark/bm_vm2_unif1.rb: cleanup.
* benchmark/bm_vm2_zsuper.rb: cleanup.
* benchmark/bm_vm_thread_alive_check1.rb: cleanup.
Fri Jul 1 15:23:00 2011 Marc-Andre Lafortune <[email protected]>
* lib/matrix: Add LUP decomposition
Fri Jul 1 15:21:14 2011 Marc-Andre Lafortune <[email protected]>
* lib/matrix.rb: Allow non integer exponents for Matrix#**
Fri Jul 1 15:13:25 2011 Marc-Andre Lafortune <[email protected]>
* lib/matrix: Add Eigenvalue Decomposition
Fri Jul 1 15:10:22 2011 Marc-Andre Lafortune <[email protected]>
* lib/matrix: Add Matrix#round
Fri Jul 1 11:41:12 2011 NARUSE, Yui <[email protected]>
* string.c (tr_trans): free heap ptr when the str is not embedded.
patched by Eric Wong. [Bug #4956] [ruby-core:37708]
Fri Jul 1 11:07:43 2011 KOSAKI Motohiro <[email protected]>
* thread.c (do_select): fix memory leak.
Patch by Eric Wong. Thank you! [Bug #4953] [ruby-core:37702]
Fri Jul 1 08:21:28 2011 Koichi Sasada <[email protected]>
* vm_insnhelper.c (vm_getivar): check vm state version
to invalidate inline cache (ivar index).
fixes Bug #4926.
* vm_insnhelper.c (vm_setivar): ditto.
Fri Jul 1 08:03:15 2011 Nobuyoshi Nakada <[email protected]>
* error.c, thread_pthread.c (WRITE_CONST): suppress warnings
`ignoring return value'.
Fri Jul 1 06:41:36 2011 Koichi Sasada <[email protected]>
* thread.c (rb_threadptr_check_signal): only wake up main thread.
* thread.c (rb_threadptr_execute_interrupts_common): check signal
delivery if it is main thread.
fixes [ruby-dev:44005] [Ruby 1.9 - Bug #4950]
* bootstraptest/test_fork.rb: add a test for above.
* signal.c (rb_get_next_signal): skip if signal_buff is empty.
(check signal_buff.size first)
* vm_core.h: remove unused variable rb_thread_t::exec_signal.
* thread.c (rb_thread_check_trap_pending): check
rb_signal_buff_size() because rb_thread_t::exec_signal
is no longer available.
Fri Jul 1 03:28:25 2011 Yukihiro Matsumoto <[email protected]>
* class.c (Init_class_hierarchy): should name BasicObject
explicitly.
* variable.c (rb_const_defined_0): should not check for
superclasses as const_get.
Fri Jul 1 03:24:03 2011 Tadayoshi Funaba <[email protected]>
* ext/date/date_core.c: mathn is still alive (should die soon).
Thu Jun 30 23:50:00 2011 Kenta Murata <[email protected]>
* misc/ruby-mode.el (ruby-indent-beg-re): Fix broken regular
expression. Fixes #4546
Thu Jun 30 23:43:30 2011 Martin Bosslet <[email protected]>
* ext/openssl/ossl.c/.h: Added ossl_x509_name_sk2ary.
* ext/openssl/ossl.c: Replaced ossl_x509_ary2k by generic macro to
simplify future conversions.
* ext/openssl/ossl_ssl.c: Implement SSLSocket#client_ca.
* test/openssl/test_ssl.rb: Add test for SSLSocket#client_ca.
Thanks to Ippei Obayashi for providing the patch!
[ Ruby 1.9 - Feature #4481 ] [ruby-core:35461]
Thu Jun 30 22:38:58 2011 Koichi Sasada <[email protected]>
* benchmark/bm_vm2_defined_method.rb: added to measure performance of
bmethod (method defined by define_method()).
Thu Jun 30 22:17:04 2011 Koichi Sasada <[email protected]>
* vm_insnhelper.c (vm_call_bmethod): fix to hook call/return event
for methods defined by define_method(). fixes Bug #4613.
* thread.c (call_trace_proc): Fix to skip if class is not given (0).
Note that ID and Class object are passed for call/return event
if the called method was defined by define_method().
If you are author of tracer/profiler/debugger, this may be an
important change. You should check passed class as zero or
non-zero instead of checking the event type.
* test/ruby/test_settracefunc.rb: add a test for above.
Thu Jun 30 21:18:35 2011 Yutaka Kanemoto <[email protected]>
* configure.in: Add warnflags for XL/C on AIX during configure
to avoid [Bug #3971]. See [ruby-core:32859]
Thu Jun 30 21:16:04 2011 Tadayoshi Funaba <[email protected]>
* ext/date/date_core.c (m_ajd): refers a constant.
Thu Jun 30 20:54:25 2011 Nobuyoshi Nakada <[email protected]>
* ext/io/console/io-console.gemspec: spin-off gem for 1.9.2.
Thu Jun 30 20:36:23 2011 Tadayoshi Funaba <[email protected]>
* ext/date/date_core.c: trivial changes.
Thu Jun 30 20:12:36 2011 Nobuyoshi Nakada <[email protected]>
* test/ruby/test_module.rb: tests for [Bug #3422] and [Bug #3423].
Thu Jun 30 20:03:39 2011 Tadayoshi Funaba <[email protected]>
* ext/date/date_core.c: modified doc.
Thu Jun 30 19:09:19 2011 Koichi Sasada <[email protected]>
* thread_pthread.c (thread_timer): ignore unknown errno.
(we observed that select(2) was canceled by errno=514 on
boron == Linux/Xen environment)
Thu Jun 30 17:33:25 2011 Koichi Sasada <[email protected]>
* ext/objspace/objspace.c (ObjectSpace.count_tdata_objects):
Fix rdoc. Fixes Bug #3892.
* ext/objspace/objspace.c (ObjectSpace.count_tdata_objects):
Change key type if the klass of a object is zero (internal object).
Read rdoc for details.
* internal.h: export rb_objspace_data_type_name().
Thu Jun 30 17:25:08 2011 Koichi Sasada <[email protected]>
* thread_pthread.c (ping_signal_thread_list, thread_timer):
fix to keep polling state if there are any ping-tasks.
Thu Jun 30 12:25:34 2011 Koichi Sasada <[email protected]>
* thread_pthread.c (rb_thread_create_timer_thread): allocate
machine stack for the timer thread at least 12KB. FreeBSD 8.2
AMD64 causes machine stack overflow (SIGSEGV) only with
PTHREAD_STACK_MIN (maybe defined as 2KB).
Thu Jun 30 09:36:37 2011 Eric Hodel <[email protected]>
* lib/weakref.rb: Attach documentation to WeakRef and add missing
documentation
Thu Jun 30 09:30:14 2011 Eric Hodel <[email protected]>
* lib/yaml.rb: Document toplevel YAML and YAML::ENGINE to describe
Psych vs Syck engines.
Thu Jun 30 09:21:52 2011 Eric Hodel <[email protected]>
* lib/cmath.rb: Hide handle_no_method_error from RDoc.
* error.c: Document or hide undocumented error classes.
Thu Jun 30 07:49:04 2011 Eric Hodel <[email protected]>
* hash.c: Document ENV
Thu Jun 30 06:37:43 2011 Nobuyoshi Nakada <[email protected]>
* ruby.c (ruby_init_loadpath_safe): ensure RUBYLIB_PREFIX stored
before RUBYLIB, even if MANGLED_PATH is enabled. fixed #1679.
MANGLED_PATH is disabled by the default and will be removed
completely in the future.
Thu Jun 30 06:32:21 2011 Eric Hodel <[email protected]>
* lib/drb/drb.rb: Hide deprecated toplevel DRb constants.
Thu Jun 30 06:17:02 2011 NARUSE, Yui <[email protected]>
* lib/cmath.rb (CMath.log): second argument: b can be nil.
Thu Jun 30 06:23:28 2011 Eric Hodel <[email protected]>
* thread.c (ruby_thread_s_pass): Fix typo.
Thu Jun 30 06:16:53 2011 Eric Hodel <[email protected]>
* lib/rdoc: Update to RDoc 3.8 which contains fixes for documentation
in trunk.
Thu Jun 30 02:53:26 2011 KOSAKI Motohiro <[email protected]>
* thread.c (rb_threadptr_execute_interrupts_common): remove
meaningless native_thread_yield(). It never close a race.
Thu Jun 30 02:41:47 2011 KOSAKI Motohiro <[email protected]>
* thread.c (rb_thread_schedule_limits): minor optimization.
eliminate machine context saving when running time is enough small.
Thu Jun 30 02:28:11 2011 KOSAKI Motohiro <[email protected]>
* thread.c (rb_thread_schedule_rec): move interrupt_flag check to
rb_thread_schedule().
And also rename to rb_thread_schedule_limits() and remove
sched_depth argument. It's no longer called recursive.
* thread.c (rb_thread_schedule): add to check interrupt_flag as
above explained.
* thread.c (rb_threadptr_execute_interrupts_rec): rename to
rb_threadptr_execute_interrupts_common() and remove sched_depth
argument. It's no longer called recursive.
* thread.c (rb_thread_sleep): adapt the renaming.
* thread.c (rb_threadptr_execute_interrupts): ditto.
* thread.c (rb_thread_execute_interrupts): ditto.
Thu Jun 30 01:31:33 2011 KOSAKI Motohiro <[email protected]>
* thread.c (thread_s_pass): change RDoc description and remove
a sample code. The actual implementation never behave as explained by
an example. It's a documentation bug.
Thu Jun 30 00:54:33 2011 KOSAKI Motohiro <[email protected]>
* thread.c (rb_thread_stop): change RDoc sample code. The old
example is buggy and may cause deadlock. The patch is
suggested by Heesob Park <[email protected]>. Thank you!
[Bug #3606][ruby-core:31454]
Thu Jun 30 00:49:53 2011 KOSAKI Motohiro <[email protected]>
* thread.c (rb_thread_wakeup): change RDoc sample code. The old
example is buggy and may not display anything by a race.
The patch is suggested by Heesob Park <[email protected]>.
Thank you! [Bug #3606][ruby-core:31454]
Thu Jun 30 00:43:33 2011 KOSAKI Motohiro <[email protected]>
* thread.c (rb_thread_run): change RDoc. The old example is buggy
and may cause deadlock. The patch is suggested by Heesob Park
<[email protected]>. Thank you! [Bug #3606][ruby-core:31454]
Thu Jun 30 00:30:15 2011 Keiju Ishitsuka <[email protected]>
* lib/cmath.rb: make same exception for Math. fix [Bug #3137].
Thu Jun 30 00:03:20 2011 Keiju Ishitsuka <[email protected]>
* lib/irb/completion.rb: complement correctly string literal. fix
[Bug #1145].
Wed Jun 29 23:42:51 2011 Tadayoshi Funaba <[email protected]>
* ext/date/date_core.c: avoided using timev.
* ext/date/date_strftime.c: ditto.
* ext/date/date_tmx.h: ditto.
Wed Jun 29 23:17:57 2011 WATANABE Hirofumi <[email protected]>
* ext/openssl/ossl.h (OPENSSL_SYS_WIN32): support for mingw(msys).
Wed Jun 29 23:09:14 2011 WATANABE Hirofumi <[email protected]>
* ext/tk/extconf.rb (intptr_t, uintptr_t): support for the latest ActiveTcl with mingw.
Wed Jun 29 22:49:10 2011 Keiju Ishitsuka <[email protected]>
* lib/irb/cmd/help.rb: support RDoc 3.7. fix [Bug #3760].
Wed Jun 29 22:04:14 2011 CHIKANAGA Tomoyuki <[email protected]>
* lib/tracer.rb: Tracer.on only if required by -r command-line option.
and consider --disable-gems option.
* test/test_tracer.rb: add tests for it.
Wed Jun 29 13:55:36 2011 Yukihiro Matsumoto <[email protected]>
* variable.c (rb_const_get_0): should not look for superclasses if
the second optional argument is given for #const_get().
fix [Bug #3422] [Bug #3423]
Wed Jun 29 12:07:27 2011 Eric Hodel <[email protected]>
* math.c: Attach documentation for Math.
* object.c: Document NIL, TRUE, FALSE.
* io.c: Improve grammar in ARGF comment. Document STDIN/OUT/ERR.
Document ARGF global constant.
* lib/rake: Hide deprecated toplevel constants from RDoc (import from
rake trunk).
* lib/thwait.rb: Document ThWait.
* lib/mathn.rb: Hide Math redefinition from RDoc
* lib/sync.rb: Add a basic comment for Sync_m, Synchronizer_m, Sync,
Synchronizer.
* parse.y: Document SCRIPT_LINES__.
* hash.c: Document ENV class and global constant.
* vm.c: Document TOPLEVEL_BINDING.
* version.c: Document RUBY_* constants.
* ruby.c: Document DATA and ARGV.
Wed Jun 29 10:13:12 2011 Marc-Andre Lafortune <[email protected]>
* lib/matrix.rb: Matrix.zero can build rectangular matrices.
Vector#r should be called #magnitude
Wed Jun 29 10:11:08 2011 Marc-Andre Lafortune <[email protected]>
* lib/matrix.rb: Add Matrix#diagonal?, hermitian?, normal?,
orthogonal?
permutation?, symmetric?, {lower|upper}triangular?, unitary?, zero?
Wed Jun 29 10:09:35 2011 Marc-Andre Lafortune <[email protected]>
* lib/matrix.rb: Specialize Matrix#find_index to return [row, col]
and accept the same optional argument as #each
Wed Jun 29 10:07:32 2011 Marc-Andre Lafortune <[email protected]>
* lib/matrix.rb: Matrix#each{_with_index} can iterate over a subset
of the Matrix
Wed Jun 29 06:21:02 2011 Koichi Sasada <[email protected]>
* thread_pthread.c (native_stop_timer_thread): skip to close
communication pipe to avoid timing bug (process termination timing).
The communication pipe will closed by OS.
Wed Jun 29 06:09:54 2011 Koichi Sasada <[email protected]>
* error.c (rb_async_bug_errno): async-safe bug report function.
In timer thread, signal handler should use it.
The patch is contributed by Eric Wong <[email protected]>.
Refs: [ruby-core:37644] and [ruby-core:37647]
* thread_pthread.c: use rb_async_bug_errno().
And replace all fprintf() to write().
* internal.h (rb_async_bug_errno): add decl. of above func.
Tue Jun 28 23:46:08 2011 Keiju Ishitsuka <[email protected]>
* lib/tracer.rb: count only non-internal libraries in stack trace,
ignoring custom_require.
Tue Jun 28 21:44:58 2011 Keiju Ishitsuka <[email protected]>
* lib/irb/ruby-lex.rb: recognize '\char' in ruby statement.
Tue Jun 28 20:39:29 2011 Hiroshi Nakamura <[email protected]>
* lib/debug.rb (var_list): Command 'var *' did not work on 1.9(!).
global_variables, local_variables, and instance_variables returns
Symbols from 1.9 and need to stringify before evaling it.
See #4931.
Tue Jun 28 19:23:01 2011 KOSAKI Motohiro <[email protected]>
* signal.c: Now, USE_TRAP_SIGMASK depend on HAVE_PTHREAD_SIGMASK.
The code have already depended on pthread_sigmask since r27464.
Tue Jun 28 15:09:21 2011 NARUSE, Yui <[email protected]>
* lib/benchmark.rb: merge eregon/benchmark.
https://github.com/eregon/ruby/tree/benchmark
patched by Benoit Daloze. [ruby-core:37593] [Bug #4940]
* lib/benchmark (Benchmark#bmbm): bmbm should be consistent with bm
for the return value.
* test/benchmark: remove preemptive test instead of skipping
I removed the preemptive test I wrote for Feature #4197.
I'll add it back when the implementation will be able to satisfy it.
* lib/benchmark (Benchmark#bmbm): remove useless explicit call,
#format is an alias of #to_s test/benchmark: add a test for
format of long time.
* lib/benchmark: fix label width: always add 1 to ensure there is a
space delimiter even with times over 100s
When I asked for Feature #4197, I wanted to make delimiting spaces
consistent for #bm and #bmbm.
But with times over 100s, the output contains no space between the
label and the first time (user).
Now both ensure there is always a space, even if that means 3 spaces
with times under 10s (because it is formatted as %10.6f)
* test/benchmark: let labels be a constant
lib/benchmark (Benchmark#realtime): avoid creating an unused Proc
lib/benchmark (Benchmark#benchmark): use ensure clause to restore
STDOUT.sync, as in #bmbm
Tue Jun 28 13:41:51 2011 NAKAMURA Usaku <[email protected]>
* thread_win32.c (native_stop_timer_thread): fixed commit miss of
r32244. grep sources before changing the signature of a function.
Tue Jun 28 11:49:14 2011 Koichi Sasada <[email protected]>
* thread_pthread.c (consume_communication_pipe):
Make "buff" as static. (Maybe) "buff" can be shared between
any caller (any threads) because no one use the read values.
"buff" (1024 byte) on stack may cause stack overflow on
several environment (we found a crash on FreeBSD).
And remove const value "buff_size", and define CCP_READ_BUFF_SIZE
macro.
Tue Jun 28 11:45:30 2011 Eric Hodel <[email protected]>
* lib/rake: Update rake to fix some bugs and hide deprecated features
from RDoc.
* lib/rake/version.rb: Bump version to 0.9.2.1 to distinguish it from
the released version.
* NEWS: ditto
Tue Jun 28 11:17:28 2011 Eric Hodel <[email protected]>
* lib/rdoc: Update to RDoc 3.7 (final)
* NEWS: ditto
Tue Jun 28 10:18:42 2011 NARUSE, Yui <[email protected]>
* process.c (rb_daemon): fix wrong #endif position.
Tue Jun 28 07:50:32 2011 Eric Hodel <[email protected]>
* object.c (Init_Object): Teach RDoc what Init_class_hierarchy does to
hook up ri for BasicObject, Object, Module and Class.
Tue Jun 28 05:03:32 2011 Hiroshi Nakamura <[email protected]>
* thread.c (rb_thread_local_aref): RDoc fix. Thread#[] example
had a race. See #4480.
Tue Jun 28 01:22:00 2011 Kenta Murata <[email protected]>
* ext/bigdecimal/bigdecimal.c (BigMath_s_log): move BigMath.log from
bigdecimal/math.rb.
* ext/bigdecimal/lib/bigdecimal/math.rb: ditto.
* test/bigdecimal/test_bigdecimal.rb: move test for BigMath.log from
test/bigdecimal/test_bigmath.rb.
* test/bigdecimal/test_bigmath.rb: ditto.
Tue Jun 28 01:19:52 2011 Keiju Ishitsuka <[email protected]>
* lib/irb/ruby-lex.rb: fix [Bug #4232].
Tue Jun 28 00:14:13 2011 Masatoshi SEKI <[email protected]>
* lib/drb/drb.rb: fix [Bug #4409]. add DRbServer#here?.
* test/drb/test_drb.rb: ditto.
* test/drb/drbtest.rb: ditto.
* test/drb/ut_eq.rb: ditto.
Tue Jun 28 00:08:43 2011 Keiju Ishitsuka <[email protected]>
* lib/irb/workspace.rb: fix BUG#4793.
Mon Jun 27 22:06:12 2011 KOSAKI Motohiro <[email protected]>
* thread_pthread.c (consume_communication_pipe): don't use C99
style variable length array.
Mon Jun 27 22:04:27 2011 KOSAKI Motohiro <[email protected]>
* thread_pthread.c (consume_communication_pipe): change return
type to void. caller doesn't use it.
Mon Jun 27 21:29:50 2011 KOSAKI Motohiro <[email protected]>
* thread_pthread.h (rb_global_vm_lock_struct): add volatile to
gvl->waiting. now thread_timer() access it w/o lock.
Mon Jun 27 21:16:11 2011 KOSAKI Motohiro <[email protected]>
* thread_pthread.c: s/__gvl_acquire/gvl_acquire_common/ and
s/__gvl_release/gvl_release_common/.
Mon Jun 27 11:41:47 2011 NARUSE, Yui <[email protected]>
* thread_pthread.c (rb_thread_create_timer_thread):
the type of return value of write(2) is ssize_t.
Mon Jun 27 09:57:02 2011 Koichi Sasada <[email protected]>
* thread_pthread.c (rb_thread_create_timer_thread):
Fixes missing initialization of oflags.
Mon Jun 27 09:07:42 2011 Koichi Sasada <[email protected]>
* thread_pthread.c: Stop polling in the timer thread when there are
no waiting thread. If there are 2 or more runnable threads,
the timer thread does polling. Avoid polling makes power save
for several computers (0.2W per a Ruby process, when I measured).
If outside-event such as signal or Thread#kill was occurred
when the timer thread does not do polling, then wake-up
the timer thread using communication-pipe (the timer thread
waits this communication-pipe with select(2)).
The discussion about this modification can be found from the post
[ruby-core:33456] and other related posts.
Note that Eric Wong and KOSAKI Motohiro give us the huge
contributions for this modification. Thanks.
* thread_pthread.c (rb_thread_wakeup_timer_thread): add a function.
This function wakes up the timer thread using communication-pipe.
* thread.c (rb_thread_stop_timer_thread): add a parameter which
specify closing communication-pipe or not.
* thread.c (rb_thread_terminate_all): do not stop timer thread here
(ruby_cleanup() terminate timer thread).
* signal.c: wake up timer thread using
rb_thread_wakeup_timer_thread() from signal handler.
* eval.c (ruby_cleanup): use rb_thread_stop_timer_thread(1).
* process.c: use rb_thread_stop_timer_thread(0)
(reuse communication-pipe).
* thread_win32.c (rb_thread_wakeup_timer_thread): add a dummy
function.
* vm_core.h: add and fix decl. of functions.
Mon Jun 27 08:01:19 2011 Tadayoshi Funaba <[email protected]>
* ext/date/date_parse.c: should use ALLOCA_N.
Mon Jun 27 01:34:18 2011 Nobuyoshi Nakada <[email protected]>
* test/etc/test_etc.rb (TestEtc#test_get{pw,gr}nam): skip entries
start with + sign, which means NIS. these are returned in the
case that passwd and group entries in /etc/nsswitch.conf are set
to use "nis" explicitly on Debian. fixed #3683
Mon Jun 27 00:44:53 2011 NARUSE, Yui <[email protected]>
* parse.y (rb_parser_end_seen_p): fix documentation about return
value. patched by Sho Hashimoto. [Bug #4511]
Mon Jun 27 00:40:47 2011 NARUSE, Yui <[email protected]>
* hash.c (rb_hash_reject): add documentation that Hash#reject
without block returns enumerator.
patched by Michael Edgar [Bug #4847] [ruby-core:36800]
Sun Jun 26 23:49:21 2011 Tadayoshi Funaba <[email protected]>
* test/date/test_switch_hitter.rb: added a test.
Sun Jun 26 22:21:23 2011 Tadayoshi Funaba <[email protected]>
* ext/date/date_core.c: refactoring.
Sun Jun 26 18:03:30 2011 URABE Shyouhei <[email protected]>
* parse.y: comma at the end of line is no longer allowed.
A patch from Yukihiro Matsumoto <matz AT ruby-lang.org>.
(fixed #3456).
Sun Jun 26 13:35:35 2011 KOSAKI Motohiro <[email protected]>
* vm_dump.c (rb_vm_bugreport): change CrashReporter suggestion messages
on Mac. It should be placed after "-- C level backtrace" line.
Suggested by Endoh-san.
<before>
-- See Crash Report log file under ~/Library/Logs/CrashReporter or ---------
-- /Library/Logs/CrashReporter, for the more detail of ---------------------
-- C level backtrace information -------------------------------------------
<after>
-- C level backtrace information -------------------------------------------
See Crash Report log file under ~/Library/Logs/CrashReporter or
/Library/Logs/CrashReporter, for the more detail of.
Sun Jun 26 10:08:28 2011 Martin Bosslet <[email protected]>
* ext/openssl/extconf.rb
* ext/openssl/ossl_missing.h/.c: add ASN1_put_eoc if missing.
* ext/openssl/ossl_asn1.c: introduce ossl_asn1_object_size and
ossl_asn1_put_object to wrap functionality depending on OpenSSL
version in use.
Fixes [ Ruby 1.9 - Bug #4916 ] reported by Hiroshi Nakamura.
[ruby-core:37286]
Sun Jun 26 01:00:15 2011 Tadayoshi Funaba <[email protected]>
* ext/date/date_core.c (date_strftime_internal): removed meaningless braces.
* ext/date/date_core.c (gengo): the value should be int.
Sat Jun 25 23:45:30 2011 CHIKANAGA Tomoyuki <[email protected]>
* vm_insnhelper.c (vm_search_superclass): avoid control frame
stack overrun. currently super() in Proc created in a method