-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog
11588 lines (7068 loc) · 384 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
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 embeded.
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 chache (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
deliverly 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
defined by Module#define_method raise NoMethodError. [Bug #4881]
* test/ruby/test_method.rb t_super_in_proc_from_define_method):
add test for it.
Sat Jun 25 23:23:14 2011 CHIKANAGA Tomoyuki <[email protected]>
* thread.c (sleep_forever): now Kernel#sleep don't wakeup by
signal handler execution. [Bug #4072]
Sat Jun 25 23:14:47 2011 CHIKANAGA Tomoyuki <[email protected]>
* thread.c (rb_threadptr_check_signal): remove unnecessary th->status
backup. fix race condition which may results unexpected main thread's
status transition. see #4072
Fri Jun 24 19:57:30 2011 Hiroshi Nakamura <[email protected]>
* lib/webrick/httprequest.rb (setup_forwarded_info): Parsing request
header failed when the request is from 2 or more Apache reverse
proxies. It's said that all X-Forwarded-* headers will contain more
than one (comma-separated) value if the original request already
contained one of these headers. Since we could use these values as
Host header, we choose the initial(first) value. See #4922.
* test/webrick/test_httprequest.rb (test_forwarded): Test it.
Fri Jun 24 17:06:33 2011 Nobuyoshi Nakada <[email protected]>
* process.c (proc_daemon): should not start timer thread
twice. fixed Bug#4920.
Fri Jun 24 15:54:14 2011 Hiroshi Nakamura <[email protected]>
* ext/openssl/ossl_ssl.c (ossl_ssl_shutdown): Try to shutdown SSL
connection more gracefully. Call SSL_shutdown() max 4 times until it
returns 1 (success). Bi-directional SSL close has several states but
SSL_shutdown() kicks only 1 transition per call. Max 4 is from
mod_ssl.c of Apache httpd that says 'max 2x pending + 2x data = 4'.
See #4237.
Fri Jun 24 07:24:37 2011 Eric Hodel <[email protected]>
* lib/rake/version.rb: Fixed VERSION to work with tool/rbinstall.rb
* bin/rake: Import bin/rake from 0.9.2
* tool/rbinstall.rb (install): Rake::VERSION is now in
lib/rake/version.rb. Fixes `make install`
Fri Jun 24 07:11:37 2011 Eric Hodel <[email protected]>
* lib/rake: Import Rake 0.9.2
Fri Jun 24 00:44:15 2011 Tadayoshi Funaba <[email protected]>
* ext/date/date_core.c (c_valid_{julian,gregorian}_p): fixed the range of month.
Fri Jun 24 00:14:23 2011 Tadayoshi Funaba <[email protected]>
* ext/date/date_core.c: trivial changes on text.
Thu Jun 23 22:46:57 2011 Hiroshi Nakamura <[email protected]>
* ext/openssl/ossl_x509name.c: Add X509::Name#hash_old as a wrapper
for X509_NAME_hash_old in OpenSSL 1.0.0. See #4805
* test/openssl/test_x509name.rb (test_hash): Make test pass with
OpenSSL 1.0.0.
* NEWS: Add it.
Thu Jun 23 19:30:53 2011 Hiroshi Nakamura <[email protected]>
* ext/openssl/ossl_ssl_session.c (ossl_ssl_session_set_time): Check
argument type with NUM2LONG if the arg is not a Time object.
See #4919.
* ext/openssl/ossl_ssl_session.c (ossl_ssl_session_set_timeout): Check
type with NUM2LONG. Time as an arg is not allowed. See #4919.
* test/openssl/test_ssl_session.rb (test_session_time,
test_session_timeout): Test it.
Wed Jun 23 13:30:30 2011 Shota Fukumori <[email protected]>
* signal.c(ruby_atomic_exchange): Fix definition style.
Wed Jun 22 22:34:05 2011 Hiroshi Nakamura <[email protected]>
* ext/openssl/ossl_ssl.c (ossl_sslctx_session_new_cb): Return 0 to
OpenSSL from the callback for SSL_CTX_sess_set_get_cb().
Returning 0 means to OpenSSL that the session is still valid
(since we created Ruby Session object) and was not freed by us with
SSL_SESSION_free(). Call SSLContext#remove_session(sess) in
session_get_cb block if you don't want OpenSSL to cache the session
internally.
This potential issue was pointed by Ippei Obayashi. See #4416.
* test/openssl/test_ssl_session.rb (test_ctx_server_session_cb): Test
it.
Wed Jun 22 22:21:17 2011 Martin Bosslet <[email protected]>
* ext/openssl/ossl_ssl_session.c: Respect T_BIGNUM time values. Patch by
Tomoyuki Chikanaga.
[ Ruby 1.9 - Bug #4919 ] [ruby-dev:43869]
Wed Jun 22 21:29:25 2011 KOSAKI Motohiro <[email protected]>
* ext/socket/depend (SOCK_HEADERS): use $(top_srcdir) instead of
$(topdir). sorry!
Wed Jun 22 19:47:03 2011 NARUSE, Yui <[email protected]>
* cont.c (cont_capture): add volatile.
On clang -O, it is needed to avoid the optimization.
With this and llvm/clang's recent fix, clang 3.0 can
build ruby-trunk with -O option.
* cont.c (cont_capture): use for-loop.
* array.c (rb_ary_each): add volatile and use it.
* vm_insnhelper.c (vm_call_cfunc): ditto.
Wed Jun 22 18:20:46 2011 Hiroshi Nakamura <[email protected]>
* ext/openssl/ossl_ssl.c (ossl_sslctx_session_remove_cb):
OpenSSL::SSL::SSLContext#session_remove_cb was broken. It wrongly
tried to call the session_*new*_cb callback.
* test/openssl/test_ssl_session.rb (class OpenSSL): Test it.
Wed Jun 22 17:37:49 2011 Martin Bosslet <[email protected]>
* ext/openssl/ossl.h: Introduced OSSL_BIO_reset macro for PEM/DER
fallback scenarios.
* ext/openssl/ossl_pkey_dsa.c
* ext/openssl/ossl_x509req.c
* ext/openssl/ossl_pkey_rsa.c
* ext/openssl/ossl_pkey_ec.c
* ext/openssl/ossl_ssl_session.c
* ext/openssl/ossl_x509crl.c
* ext/openssl/ossl_pkey.c
* ext/openssl/ossl_pkey_dh.c
* ext/openssl/ossl_x509cert.c
* ext/openssl/ossl_pkcs7.c: Use OSSL_BIO_reset.
* ext/openssl/ossl_ssl.c
* ext/openssl/ossl_cipher.c
* ext/openssl/ossl_pkey_ec.c
* ext/openssl/ossl_pkcs12.c
* ext/openssl/ossl_ssl_session.c: Replace rb_raise occurrences by
ossl_raise. This automatically flushes OpenSSL's error queue.
* ext/openssl/ossl_pkcs7.c: Raise error if DER fallback for parsing
fails.
* test/openssl/test_pkey_ec.rb
* test/openssl/test_pkey_dsa.rb
* test/openssl/test_pkey_rsa.rb: Add assertions that OpenSSL.errors is
empty.
* test/openssl/test_pkey_rsa.rb: Remove initial OpenSSL.errors call in
test_new.
[ Ruby 1.9 - Bug #4885 ] [ruby-core:37134]
Wed Jun 22 15:01:24 2011 Martin Bosslet <[email protected]>
* ext/openssl/ossl_ssl.c: Use SSL_MODE_RELEASE_BUFFERS if available.
Thanks, Eric Wong, for providing the patch.
[ Ruby 1.9 - Feature #4672 ] [ruby-core:36127]
Wed Jun 22 14:47:53 2011 Martin Bosslet <[email protected]>
* test/openssl/test_buffering.rb
* test/openssl/test_pkcs12.rb: Inherit from Test::Unit::TestCase
instead of MiniTest::Unit::TestCase. [ruby-core:37275]
Wed Jun 22 12:41:03 2011 Hiroshi Nakamura <[email protected]>
* ext/openssl/ossl_ssl_session.c (ossl_ssl_session_to_der):
OpenSSL::SSL::Session#to_der was broken. Fix buffer handling.
* test/openssl/test_ssl_session.rb (test_session): Test it.
Wed Jun 22 12:38:52 2011 Hiroshi Nakamura <[email protected]>
* test/openssl/test_ssl_session.rb: Split out SSL::Session related
tests from test_ssl.rb
Wed Jun 22 03:20:52 2011 Aaron Patterson <[email protected]>
* ext/psych/lib/psych/visitors/to_ruby.rb: Fix cyclic references of
objects. Thanks to CvX for reporting the bug and a test case.
* test/psych/test_object.rb: test for cyclic object references.
Wed Jun 22 02:39:54 2011 Hiroshi Nakamura <[email protected]>
* lib/net/http.rb (Net::HTTP.post_form): Do not ignore query part of
the given URI to post. See #655.
* test/net/http/test_http.rb, test/net/http/utils.rb: Test it.
Wed Jun 22 01:28:13 2011 Hiroshi Nakamura <[email protected]>
* test/openssl/test_x509store.rb (test_set_errors): Redhat is
distributing a patched version of OpenSSL that allows multiple CRL
for a key (multi-crl.patch.) Make test pass on such env. See #4122,
#4554.
Tue Jun 21 21:50:37 2011 Hiroshi Nakamura <[email protected]>
* lib/webrick/httpresponse.rb (HTTPResponse#setup_header): Close
HTTP/1.1 connection when returning an IO object as response body
without setting HTTPResponse#chunked to true. See #855 no.1.
* test/webrick/test_httpserver.rb: Test it.
Tue Jun 21 21:27:34 2011 KOSAKI Motohiro <[email protected]>
* internal.h: move rb_thread_io_blocking_region() declaration
from intern.h to internal.h. It's still experimental API and
need more discussion. [ruby-dev:43698]
* include/ruby/intern.h: ditto.
* ext/socket/rubysocket.h: include internal.h.
* ext/socket/depend: add internal.h dependency.
* ext/socket/extconf.rb: add $INCFLAGS to topdir.
Tue Jun 21 20:38:47 2011 Tadayoshi Funaba <[email protected]>
* ext/date/date_core.c (datetime_s_*): canonicalize 24 o'clock.
Tue Jun 21 19:46:23 2011 KOSAKI Motohiro <[email protected]>
* test/ruby/test_thread.rb (TestThread#test_priority): enable
this test again. Current GVL respect thread priority rather
than past.
Tue Jun 21 13:25:35 2011 TAKAO Kouji <[email protected]>
* ext/readline/readline.c (readline_getc): applied a patch in
#3827 by by Akio Tajima <artonx AT yahoo.co.jp>. (see #3827)
Tue Jun 21 13:16:31 2011 TAKAO Kouji <[email protected]>
* ext/readline/extconf.rb: fixed bug, specify --disable-libedit
then disable libedit, does not specify then check readline and
libedit if failed checking readline. (fixes #3375)
Mon Jun 20 22:52:07 2011 KOSAKI Motohiro <[email protected]>
* process.c (before_exec): use sig_do_nothing instead of SIG_DFL
for avoiding a race.
* process.c (sig_do_nothing): new function.
Mon Jun 20 21:31:03 2011 KOSAKI Motohiro <[email protected]>
* thread_pthread.c (thread_timer): rename timeout_10ms to
time_quantum. it's no longer 10ms.
Mon Jun 20 18:46:02 2011 Hiroshi Nakamura <[email protected]>
* ext/openssl/ossl_cipher.c, ext/openssl/lib/openssl/cipher.rb:
Documentation fix by Ippei Obayashi. See #4419.
Mon Jun 20 15:41:33 2011 Hiroshi Nakamura <[email protected]>
* lib/webrick/cookie.rb (WEBrick::Cookie.parse): Revert r31228.
r31228 was for allowing the 'Cookie:' header which did not have no
SP after ';' for separating cookie-pairs but RFC6265 requires single
SP after ';' there. We allow multiple SPs here for compatibility
with older WEBrick version.
* test/webrick/test_cookie.rb: Test it.
Sun Jun 19 13:31:26 2011 Shota Fukumori <[email protected]>
* NEWS: Introduce --hide-skip on test/unit.
Sun Jun 19 10:05:16 2011 Shota Fukumori <[email protected]>
* lib/test/unit/parallel.rb: Override Test::Unit::TestCase#on_parallel_worker?
only when $0 == __FILE__.
* lib/test/unit/parallel.rb: Run Test::Unit::Worker.run only when
$0 == __FILE__.
Sat Jun 18 23:59:24 2011 Nobuyoshi Nakada <[email protected]>
* io.c (fill_cbuf): finish reading at EOF, and the readconv has
been cleared by another thread while io_fillbuf() is waiting at
select(). a patch in [ruby-core:37197] by Hiroshi Shirosaki
<h.shirosaki AT gmail.com>. fixed #3840
Sat Jun 18 21:36:29 2011 KOSAKI Motohiro <[email protected]>
* thread_pthread.c: remove GVL_DEBUG
Sat Jun 18 21:32:02 2011 KOSAKI Motohiro <[email protected]>
* vm.c, vm_core.h (rb_vm_stack_to_heap): remove const.
It makes compilations warnings.
Sat Jun 18 18:54:15 2011 Koichi Sasada <[email protected]>
* vm.c, vm_core.h (rb_vm_stack_to_heap): fix "const" place.
Sat Jun 18 17:23:38 2011 Tanaka Akira <[email protected]>
* eval.c, hash.c, load.c, proc.c, range.c, thread.c, time.c: don't
declare internal functions.
* internal.h, vm_core.h: declare internal functions.
* array.c: include internal.h.
* common.mk: update dependency for array.o.
Sat Jun 18 13:39:33 2011 Tanaka Akira <[email protected]>
* internal.h: declarations declared in include/ruby/*.h removed.
Sat Jun 18 12:42:17 2011 Tanaka Akira <[email protected]>
* method.h, internal.h iseq.h: declare internal functions.
* compile.c, eval.c, iseq.c, object.c, parse.y, proc.c, process.c,
thread.c, vm.c, vm_eval.c, vm_insnhelper.c, vm_method.c: don't
declare internal functions.
Note that rb_method_entry_eq() is defined in vm_method.c but
there was a declaration in proc.c with different const-ness.
Now it is declared in method.h with same const-ness to the
definition.
* object.c (rb_mod_module_exec): don't declare functions declared in
include/ruby/intern.h.
Sat Jun 18 12:05:08 2011 Nobuyoshi Nakada <[email protected]>
* include/ruby/backward/classext.h: for evil gems. fixed #4803
Sat Jun 18 11:12:13 2011 Tanaka Akira <[email protected]>
* common.mk: update dependencies.
Sat Jun 18 11:09:03 2011 Tanaka Akira <[email protected]>
* io.c: suppress warnings.
Sat Jun 18 10:22:39 2011 Tanaka Akira <[email protected]>
* internal.h: declare more internal functions.
* iseq.h (rb_method_get_iseq): declared.
* compile.c, eval.c, eval_error.c, iseq.c, parse.y, proc.c, range.c,
ruby.c, time.c, util.c, vm.c: don't declare internal functions.
* eval.c, parse.y, thread_pthread.c: non-existing function declarations
removed.
Sat Jun 18 08:12:54 2011 Tanaka Akira <[email protected]>
* common.mk: dependencies updated.
* tool/update-deps: new file to assist update dependencies in
common.mk.
Sat Jun 18 07:27:27 2011 Tanaka Akira <[email protected]>
* internal.h: declare internal functions here.
* node.h: declare NODE dependent internal functions here.
* iseq.h: declare rb_iseq_t dependent internal functions here.
* vm_core.h: declare rb_thread_t dependent internal functions here.
* bignum.c, class.c, compile.c, complex.c, cont.c, dir.c, encoding.c,
enumerator.c, error.c, eval.c, file.c, gc.c, hash.c, inits.c, io.c,
iseq.c, load.c, marshal.c, math.c, numeric.c, object.c, parse.y,
proc.c, process.c, range.c, rational.c, re.c, ruby.c, string.c,
thread.c, time.c, transcode.c, variable.c, vm.c,
tool/compile_prelude.rb: don't declare internal functions declared