-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChangeLog
12655 lines (8056 loc) · 434 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
Wed Jul 11 10:16:38 2012 Nobuyoshi Nakada <[email protected]>
* include/ruby.h (HAVE_RUBY_THREAD_H): to show ruby/thread.h to be
available. fixup of r36355.
Wed Jul 11 03:26:47 2012 Eric Hodel <[email protected]>
* ext/zlib/zlib.c: Added streaming support to inflate processing.
This allows zlib streams to be processed without huge memory growth.
[Feature #6612]
* NEWS: ditto
* ext/zlib/zlib.c (zstream_expand_buffer): Uses rb_yield when a block
is given for streaming support. Refactored to use
zstream_expand_buffer_into to remove duplicate code.
* ext/zlib/zlib.c (zstream_expand_buffer_protect): Added wrapper
function to pass jump state back through GVL-free section to allow
zstream clean-up before terminating the ruby call.
* ext/zlib/zlib.c (zstream_expand_buffer_without_gvl): Acquire GVL to
yield processed chunk of output stream.
* ext/zlib/zlib.c (zstream_detach_buffer): When a block is given,
returns Qnil mid-stream and yields the output buffer at the end of
the stream.
* test/zlib/test_zlib.rb: Updated tests
Tue Jul 10 22:57:03 2012 Nobuyoshi Nakada <[email protected]>
* include/ruby/thread.h: new header file for thread stuff.
* thread.c (rb_thread_call_without_gvl): export. [Feature#4328]
returns void* instead of VALUE. [Feature #5543]
* thread.c (rb_thread_blocking_region): deprecate. [ruby-core:46295]
Tue Jul 10 10:48:59 2012 NAKAMURA Usaku <[email protected]>
* include/ruby/win32.h (NT, NtInitialize): removed unused old macros.
Tue Jul 10 10:43:37 2012 NAKAMURA Usaku <[email protected]>
* configure.in: removed --enable/disable-win95 options. (see r36342)
Tue Jul 10 00:44:41 2012 KOSAKI Motohiro <[email protected]>
* include/ruby/ruby.h: Removed RUBY_GLOBAL_SETUP completely. It is
no meaning definition since r24894.
* main.c: ditto.
* nacl/pepper_main.c: ditto.
Mon Jul 9 23:59:36 2012 KOSAKI Motohiro <[email protected]>
* dln.c: Simplify and make consistent an ifdef for Mac OS X.
* ext/socket/rubysocket.h: ditto.
* ext/tk/stubs.c: ditto.
* io.c: ditto.
* process.c: ditto.
* signal.c: ditto.
* vm_dump.c: ditto.
Mon Jul 9 17:37:35 2012 NAKAMURA Usaku <[email protected]>
* win32/win32.c (win95_stat): removed unnecessary macro.
Mon Jul 9 17:22:16 2012 NAKAMURA Usaku <[email protected]>
* win32/configure.bat, win32/setup.mak, win32/Makefile.sub: omitted
Win9x support. removed --enable/disable-win95 options.
* include/ruby/win32.h, file.c, win32/win32.c: ditto.
* win32/README.win32: ditto.
Mon Jul 9 13:28:34 2012 Nobuyoshi Nakada <[email protected]>
* configure.in (DLDFLAGS): use TARGET_ENTRY to specify an entry point
instead of TARGET which may contain non-identifier characters.
* lib/mkmf.rb (create_makefile): add TARGET_NAME which is the first
part consists of only word characters. [ruby-core:46248][Bug #6709]
Sun Jul 8 07:36:19 2012 Nobuyoshi Nakada <[email protected]>
* parse.y (shadowing_lvar_gen, warn_unused_var): no warnings for
variables starting with _. [ruby-core:46160][Feature #6693]
Sat Jul 7 23:07:30 2012 CHIKANAGA Tomoyuki <[email protected]>
* test/csv/test_features.rb: add require for Tempfile.
* test/csv/test_serialization.rb: ditto.
Fri Jul 6 06:49:50 2012 Eric Hodel <[email protected]>
* array.c (rb_ary_aref): Added a description of the behavior of
index positioning. [Bug #6680]
* array.c (rb_ary_aset): ditto. Reordered sentences for clarity.
* string.c (rb_str_aref_m): Added a description of the behavior of
index positioning
Fri Jul 6 05:38:44 2012 Eric Hodel <[email protected]>
* string.c (rb_str_bytesize): Improve documentation. Patch by Oscar
Del Ben from github issue #138.
* string.c (rb_str_empty): ditto.
* string.c (rb_str_times): ditto.
* string.c (rb_str_dump): ditto.
* string.c (rb_str_center): ditto.
Fri Jul 6 04:05:59 2012 Eric Hodel <[email protected]>
* ext/zlib/zlib.c (zstream_expand_buffer_without_gvl): Use
ruby_xrealloc() to avoid crash with CALC_EXACT_MALLOC_SIZE.
Thu Jul 5 17:32:19 2012 Nobuyoshi Nakada <[email protected]>
* internal.h: move ThreadShield declarations from intern.h.
Thu Jul 5 16:00:24 2012 Nobuyoshi Nakada <[email protected]>
* thread.c (ThreadShield): rename from Barrier.
Thu Jul 5 15:14:50 2012 Nobuyoshi Nakada <[email protected]>
* bootstraptest/runner.rb (show_progress): refine error output. do not
count non-empty error message, but just warn.
* bootstraptest/runner.rb (error): show errors immediately if tty.
Thu Jul 5 12:28:11 2012 Akinori MUSHA <[email protected]>
* test/net/http/test_httpresponses.rb: Add a test file for
Net::HTTPResponses and put a test case for the previous bug.
Thu Jul 5 06:33:52 2012 Mark Dodwell <[email protected]>
* lib/net/http/responses.rb: Fix 4xx classes to inherit correctly
from Net::HTTPClientError. [Bug #6700]
Wed Jul 4 21:55:35 2012 NARUSE, Yui <[email protected]>
* ruby.c (proc_options): warn only if -K and -w option is specified.
see also r36274 [Feature #5206]
Wed Jul 4 21:41:44 2012 Naohisa Goto <[email protected]>
* gc.c, atomic.h (ATOMIC_SIZE_*): moved from gc.c to atomic.h
[ruby-dev:45909]
Wed Jul 4 19:13:15 2012 Masaki Suketa <[email protected]>
* test/win32ole/test_win32ole.rb (test_s_codepage_changed):
FileSystemObject only supports ANSI or UTF-16LE encoding.
Patch by h.shirosaki (Hiroshi Shirosaki) [ruby-trunk - Bug #6650]
Wed Jul 4 11:52:12 2012 NAKAMURA Usaku <[email protected]>
* gc.c (ATOMIC_SIZE_*): 64bit Windows support.
Wed Jul 4 11:11:28 2012 Nobuyoshi Nakada <[email protected]>
* eval.c (rb_frame_callee, rb_f_callee_name): fix to return the
called id. this longstanding bug has been caused and blocked by
the structure of old rb_control_frame_t and rb_iseq_t.
* vm_insnhelper.c (vm_push_frame): set proper method entry.
Wed Jul 4 08:29:31 2012 Eric Hodel <[email protected]>
* array.c (rb_ary_aref): Updated documentation to indicate the
starting index is an index into the array or string. Updated
examples to show behavior of indexes at the end of an array or
string. Based on patch by Marcus Stollsteimer. [Bug #6680]
* array.c (rb_ary_aset): ditto.
* string.c (rb_str_aref): ditto. Also added descriptive argument
names to call-seq section.
Wed Jul 4 07:05:59 2012 Eric Hodel <[email protected]>
* test/zlib/test_zlib.rb (test_inflate_partial_input): Added test for
inflating incomplete zlib streams.
Tue Jul 3 23:14:16 2012 Naohisa Goto <[email protected]>
* gc.c (ATOMIC_SIZE_EXCHANGE): fix function name on Solaris [Bug #6689]
[ruby-dev:45904]
Tue Jul 3 16:07:49 2012 Nobuyoshi Nakada <[email protected]>
* gc.c (vm_malloc_fixup, vm_xrealloc, vm_xfree, after_gc_sweep): use
atomic operations to update malloc_params.
Tue Jul 3 14:50:16 2012 Eric Hodel <[email protected]>
* ext/zlib/zlib.c (zstream_run_func): Don't exit run loop for buffer
error. [Feature #6615]
* ext/zlib/zlib.c: Fix style to match existing functions.
Tue Jul 3 12:05:51 2012 NAKAMURA Usaku <[email protected]>
* ext/dl/cfunc.c (rb_dlcfunc_call): also needed the workaround for VC8
for x64. [ruby-dev:45875] [Bug #6676]
reported by aves_ramphastos (Seigo Ishigane)
Tue Jul 3 11:56:46 2012 Eric Hodel <[email protected]>
* ext/zlib/zlib.c (zstream_detach_buffer): Refactored tainting of
output string, moving it from the callee to zstream_detach_buffer.
* ext/zlib/zlib.c (rb_zstream_finish): ditto
* ext/zlib/zlib.c (rb_zstream_flush_next_out): ditto
* ext/zlib/zlib.c (rb_deflate_deflate): ditto
* ext/zlib/zlib.c (rb_deflate_flush): ditto
* ext/zlib/zlib.c (rb_inflate_inflate): ditto
Tue Jul 3 11:16:06 2012 Nobuyoshi Nakada <[email protected]>
* common.mk (runnable): make symbolic links to run in build directory.
Tue Jul 3 10:46:06 2012 NARUSE, Yui <[email protected]>
* ruby.c (proc_options): warn if -K option is specified. [Feature #5206]
Tue Jul 3 06:12:13 2012 Eric Hodel <[email protected]>
* object.c (Init_Object): Added RDoc location pointers for
Kernel#methods, Kernel#protected_methods, Kernel#private_methods and
Kernel#public_methods. [Bug #6666]
Tue Jul 3 06:02:54 2012 Eric Hodel <[email protected]>
* ext/zlib/zlib.c (zstream_run): Process zlib streams without GVL.
[Feature #6615]
* NEWS: ditto.
Mon Jul 2 22:13:04 2012 Tanaka Akira <[email protected]>
* thread.c (rb_thread_aref): add explanation for why Thread#[] and
Thread#[]= are fiber-local and not thread-local.
reported by Julien A. [ruby-core:41606] [ruby-trunk - Bug #5750]
Mon Jul 2 21:25:55 2012 Tanaka Akira <[email protected]>
* time.c (timew_out_of_timet_range): specialization for
SIZEOF_TIME_T == SIZEOF_INT64_T.
Mon Jul 2 17:06:32 2012 Nobuyoshi Nakada <[email protected]>
* class.c (rb_include_module): include modules after the origin.
* class.c (include_modules_at): skip prepended modules.
* class.c (rb_prepend_module): now basic.klass in ICLASS refers the
old original class/module. [ruby-dev:45868][Bug #6662]
* class.c (rb_mod_ancestors): ditto.
* vm_method.c (search_method): search method entry from the origin
iclass.
Mon Jul 2 05:54:58 2012 Tadayoshi Funaba <[email protected]>
* ext/date/date_core.c: [ruby-core:46058].
Mon Jul 2 05:35:43 2012 Tadayoshi Funaba <[email protected]>
* ext/date/date_core.c (d_lite_marshal_load): accepts old dump.
Mon Jul 2 03:21:53 2012 Ayumu AIZAWA <[email protected]>
* README.EXT.ja: fixed args of have_struct_member() ,
create_makefile() same as r35977. however, mkmf.rb include
no Japanese-docs, so Appendix C was not removed. [Bug #6597]
Fri Jun 29 05:08:41 2012 NARUSE, Yui <[email protected]>
* lib/test/unit/parallel.rb: workaround fix for rubygems.
RubyGems can't find rake if the source directory is not equal to
the directory which is running the test. [Bug #6604]
Thu Jun 28 20:33:15 2012 Luis Lavena <[email protected]>
* test/win32ole/test_win32ole.rb (test_s_codepage_changed):
FileSystemObject only supports ANSI or UTF-16LE encoding.
Patch by bosko (Bosko Ivanisevic) [ruby-trunk - Bug #6650]
Thu Jun 28 09:27:09 2012 CHIKANAGA Tomoyuki <[email protected]>
* class.c (class_instance_method_list): consider prepended Class/Module
when recur != 0. [ruby-dev:45863] [Bug #6660]
* test/ruby/test_module.rb (test_prepend_instance_methods_false): add
a test for it.
Thu Jun 28 06:12:42 2012 Nobuyoshi Nakada <[email protected]>
* class.c (rb_mod_ancestors): fix ancestors order.
[ruby-core:45919][Bug #6658] [ruby-dev:45861][Bug #6659]
Wed Jun 27 21:28:59 2012 Kazuhiro NISHIYAMA <[email protected]>
* lib/racc/parser.rb: NotImplementError is not exist.
* lib/irb/output-method.rb (IRB::OutputMethod#print): ditto.
Wed Jun 27 21:31:13 2012 Nobuyoshi Nakada <[email protected]>
* class.c (rb_prepend_module): ancestors of prepending module also
should be included. [ruby-core:45914][Bug #6654]
Wed Jun 27 21:01:32 2012 Nobuyoshi Nakada <[email protected]>
* class.c (class_instance_method_list): m_tbl in prepended
class/module is NULL. [ruby-core:45915][Bug #6655]
Wed Jun 27 16:48:48 2012 Nobuyoshi Nakada <[email protected]>
* class.c (rb_prepend_module): prepend module into another module.
* eval.c (rb_mod_prepend): new method Module#prepend. [Feature #1102]
Wed Jun 27 09:15:46 2012 Nobuyoshi Nakada <[email protected]>
* io.c (is_popen_fork): check if fork and raise NotImplementedError if
unavailable.
* io.c (rb_io_s_popen): allow environment variables hash and exec
options as flat parameters, not in an array arguments.
[Feature#6651] [EXPERIMENTAL]
* process.c (rb_execarg_extract_options): extract exec options, but no
exceptions on non-exec options and returns them as a Hash.
* process.c (rb_execarg_setenv): set environment variables.
Tue Jun 26 16:57:14 2012 Koichi Sasada <[email protected]>
* thread_pthread.c (register_cached_thread_and_wait):
return immediately if malloc() failed.
[ruby-core:43960] [ruby-trunk - Bug #6235]
* thread_pthread.c (USE_THREAD_CACHE): check already defined or not.
Tue Jun 26 10:01:56 2012 Nobuyoshi Nakada <[email protected]>
* io.c (rb_io_s_popen): revert r36213 "popen: shell commands with
envvar" because it disabled to let single command bypass shell.
Mon Jun 25 17:49:28 2012 Nobuyoshi Nakada <[email protected]>
* class.c (rb_mix_module): revert Module#mix.
Mon Jun 25 16:57:38 2012 Nobuyoshi Nakada <[email protected]>
* proc.c (rb_mod_define_method): allow method transplanting from a
module to either class or module. [ruby-core:34267][Feature #4254]
Mon Jun 25 11:34:45 2012 NAKAMURA Usaku <[email protected]>
* internal.h: use rb_pid_t instead of pid_t because of there is no
definition of pid_t here on Windows.
Mon Jun 25 00:25:01 2012 KOSAKI Motohiro <[email protected]>
* configure.in (for stack end address): remove human68k specific
check. It is no longer supported.
Sun Jun 24 23:02:17 2012 Nobuyoshi Nakada <[email protected]>
* io.c (pipe_open): merge win32 code using spawnv().
Sun Jun 24 22:53:42 2012 Nobuyoshi Nakada <[email protected]>
* process.c (check_exec_fds): separate check_exec_fds_1() since
nonstatic initializer of an aggregate type is not allowed by C89.
Sun Jun 24 07:47:17 2012 Tanaka Akira <[email protected]>
* internal.h (rb_execarg): options field removed.
* process.c: follow the rb_execarg change.
Sat Jun 23 23:48:21 2012 Tanaka Akira <[email protected]>
* process.c (proc_spawn_cmd): unused variable removed to suppress a
warning.
(save_env): ditto.
[ruby-core:45797] reported by Luis Lavena.
Sat Jun 23 23:19:31 2012 Tanaka Akira <[email protected]>
* internal.h (rb_execarg): add new_pgroup_given and new_pgroup_flag
fields.
* process.c (EXEC_OPTION_NEW_PGROUP): removed.
(proc_spawn_cmd): take a struct rb_execarg argument.
use the new fields.
(rb_execarg_addopt): use the new fields.
(rb_spawn_process): follow the proc_spawn_cmd change.
[ruby-core:45794] [ruby-trunk - Bug #6633] reported by Luis Lavena.
Sat Jun 23 20:26:36 2012 Tanaka Akira <[email protected]>
* internal.h (rb_execarg): add fd_dup2, fd_close, fd_open,
fd_dup2_child fields.
* process.c (EXEC_OPTION_DUP2): removed.
(EXEC_OPTION_CLOSE): removed.
(EXEC_OPTION_OPEN): removed.
(EXEC_OPTION_DUP2_CHILD): removed.
(mark_exec_arg): mark the new fields.
(check_exec_redirect1): change condition for default option.
(check_exec_redirect): take a struct rb_execarg argument.
use the new fields.
(rb_execarg_addopt): follow the check_exec_redirect change.
(check_exec_fds): use the new fields.
(save_redirect_fd): ditto.
Sat Jun 23 19:01:18 2012 Tanaka Akira <[email protected]>
* process.c (rb_execarg_fixup): fix envopts condition.
Sat Jun 23 18:44:13 2012 Tanaka Akira <[email protected]>
* process.c (check_exec_redirect1): extracted from
check_exec_redirect.
Sat Jun 23 17:22:02 2012 Tanaka Akira <[email protected]>
* process.c (save_env): don't use EXEC_OPTION_UNSETENV_OTHERS.
(rb_execarg_run_options): ditto.
Sat Jun 23 17:04:08 2012 Tanaka Akira <[email protected]>
* internal.h (rb_execarg): add env_modification field.
* process.c (EXEC_OPTION_ENV): removed.
(mark_exec_arg): mark env_modification field.
(rb_exec_fillarg): update the new field, instead of options array.
(rb_execarg_fixup): use the new field.
(save_env): ditto.
(rb_execarg_run_options): ditto.
Sat Jun 23 16:27:01 2012 Tanaka Akira <[email protected]>
* internal.h (rb_execarg): add rlimit_limits field.
* process.c (EXEC_OPTION_RLIMIT): removed.
(mark_exec_arg): mark rlimit_limits field.
(rb_execarg_addopt): update the new fields, instead of options array.
(run_exec_rlimit): use the new field.
(rb_execarg_run_options): clear sarg using MEMZERO. use the new
field.
Sat Jun 23 14:29:25 2012 Tanaka Akira <[email protected]>
* internal.h (rb_execarg): add chdir_given and chdir_dir fields.
* process.c (EXEC_OPTION_CHDIR): removed.
(mark_exec_arg): mark chdir_dir field.
(rb_execarg_addopt): update the new fields, instead of options array.
(rb_execarg_run_options): use the new fields.
Sat Jun 23 13:20:47 2012 Tanaka Akira <[email protected]>
* internal.h (rb_execarg): add close_others_given, close_others_do and
close_others_maxhint fields.
* process.c (EXEC_OPTION_CLOSE_OTHERS): removed.
(rb_execarg_addopt): update the new fields, instead of options array.
(check_exec_fds): take eargp as an argument. update the
close_others_maxhint field.
(rb_execarg_fixup): follow the argument change of check_exec_fds.
(rb_execarg_run_options): use the new fields.
Sat Jun 23 10:41:59 2012 Tanaka Akira <[email protected]>
* internal.h (rb_execarg): add unsetenv_others_given and
unsetenv_others_do fields.
* process.c (EXEC_OPTION_UNSETENV_OTHERS): removed.
(rb_execarg_addopt): update the new fields, instead of options array.
(rb_execarg_fixup): use the new fields.
Sat Jun 23 09:35:47 2012 Tanaka Akira <[email protected]>
* process.c: use the variable name "soptions" for sargp->options.
Sat Jun 23 09:17:49 2012 Tanaka Akira <[email protected]>
* process.c: use the name "sargp" for struct rb_execarg variables
consistently for saving process attributes.
* io.c: ditto.
Sat Jun 23 07:59:57 2012 Tanaka Akira <[email protected]>
* process.c: use the name "eargp" for struct rb_execarg variables
consistently except for saving process attributes.
* io.c: ditto.
* ext/pty/pty.c: ditto.
Wed Jun 20 18:27:03 2012 Yuki Yugui Sonoda <[email protected]>
* common.mk: Add missing dependencies.
Fri Jun 22 20:27:39 2012 Tanaka Akira <[email protected]>
* internal.h (rb_execarg): add pgroup_given and pgroup_pgid fields.
* process.c (EXEC_OPTION_PGROUP): removed.
(rb_execarg_addopt): update the new fields, instead of options array.
(run_exec_pgroup): take a struct rb_execarg argument. refer the new
fields.
(rb_execarg_run_options): follow run_exec_pgroup change.
Fri Jun 22 18:48:51 2012 Kouhei Sutou <[email protected]>
* README.EXT, README.EXT.ja: use "sval" for the third argument
name of Data_Wrap_Struct().
Suggested by @satoh_fumiyasu. Thanks!!!
Fri Jun 22 18:04:26 2012 Koichi Sasada <[email protected]>
* iseq.c, vm_eval.c: set th->base_block properly.
th->base_block is information for (a) parsing, (b) compiling
and (c) setting up the frame to execute the program passed by
`eval' method. For example, (1) parser need to know up-level
variables to detect it is variable or method without paren.
Befor (a), (b) and (c), VM set th->base_block by passed bindng
(or previous frame information). After execute (a), (b) and (c),
VM should clear th->base_block. However, if (a), (b) or (c)
raises an exception, then th->base_block is not cleared.
Problem is that the uncleared value th->balo_block is used for
irrelevant iseq compilation. It causes SEGV or critical error.
I tried to solve this problem: to clear them before exception,
but finally I found out that it is difficult to do it (Ruby
program can be run in many places).
Because of this background, I set th->base_block before
compiling iseq and restore it after compiling.
Basically, th->base_block is dirty hack (similar to global
variable) and this patch is also dirty.
* bootstraptest/test_eval.rb: add a test for above.
* internal.h: remove unused decl.
* iseq.c (rb_iseq_compile_with_option): add base_block parameter.
set th->base_block before compilation and restore it after
compilation.
* ruby.c (require_libraries): pass 0 as base_block instead of
setting th->base_block
* tool/compile_prelude.rb (prelude_eval): apply above changes.
* vm.c, vm_eval.c: ditto.
* vm_core.h: add comments.
Fri Jun 22 18:19:38 2012 Tanaka Akira <[email protected]>
* process.c: pass struct rb_execarg value instead of its options
field for saving process attribute changing functions.
(save_redirect_fd): take a struct rb_execarg argument.
(run_exec_dup2): ditto.
(run_exec_close): ditto.
(run_exec_open): ditto.
(run_exec_dup2_child): ditto.
(run_exec_pgroup): ditto.
(run_exec_rlimit): ditto.
(save_env): ditto.
(rb_execarg_run_options): follow the above functions change.
Fri Jun 22 17:55:48 2012 Koichi Sasada <[email protected]>
* test/ruby/test_backtrace.rb: decrease recursion depth
to reduce consuming stack size.
Fri Jun 22 13:36:50 2012 Nobuyoshi Nakada <[email protected]>
* random.c (random_init, random_load): cannot initialize frozen object
again, nor with tainted/untrusted object. [Bug #6540]
Fri Jun 22 13:32:33 2012 Nobuyoshi Nakada <[email protected]>
* error.c (rb_check_copyable): new function, to ensure the target is
not frozen and the source is not tainted nor untrusted.
Fri Jun 22 05:55:20 2012 Eric Hodel <[email protected]>
* eval.c (ruby_cleanup): Fixed typo. Patch by Trever Dawe.
Fixes #131 (github). [ruby-trunk - Bug #6619]
Thu Jun 21 21:16:58 2012 Tanaka Akira <[email protected]>
* process.c (rb_execarg_addopt): take a VALUE argument instead of
struct rb_execarg.
(rb_exec_arg_addopt): follow the rb_execarg_addopt change.
(check_exec_options_i): ditto.
* io.c (pipe_open): follow the rb_execarg_addopt change.
* internal.h (rb_execarg_addopt): follow the definition change.
Thu Jun 21 20:34:19 2012 Tanaka Akira <[email protected]>
* process.c (rb_exec_fillarg): take a VALUE argument instead of
struct rb_execarg.
(rb_check_exec_options): ditto.
(check_exec_options_i): ditto.
Thu Jun 21 19:48:05 2012 Tanaka Akira <[email protected]>
* process.c (rb_exec_async_signal_safe): use rb_execarg_run_options
instead of rb_run_exec_options_err.
(rb_spawn_process): ditto.
Thu Jun 21 19:02:43 2012 Tanaka Akira <[email protected]>
* process.c (rb_exec_fillarg): take a VALUE argument instead of
struct rb_execarg.
(rb_execarg_init): follow the rb_exec_fillarg change.
Thu Jun 21 18:36:43 2012 Tanaka Akira <[email protected]>
* process.c (rb_execarg_init): take a VALUE argument instead of
struct rb_execarg.
(rb_execarg_new): follow the rb_execarg_init change.
(rb_exec_arg_init): ditto.
* internal.h (rb_execarg_init): follow the definition change.
Thu Jun 21 17:20:44 2012 Nobuyoshi Nakada <[email protected]>
* parse.y (new_args_tail_gen): fix GC problem of keyword rest
argument. the wrapped struct should be bound to the wrapping node
before assignment of child nodes, to get rid of the case the
children are referred by only the struct pointer which is not a
subject of GC. [ruby-core:45744]
Thu Jun 21 07:06:52 2012 Koichi Sasada <[email protected]>
* error.c (err_append): rename err_append() to compile_err_append()
and move definition body. err_append() is used only by compiling.
Thu Jun 21 06:21:54 2012 Tanaka Akira <[email protected]>
* process.c (rb_execarg_fixup): take a VALUE argument instead of
struct rb_execarg.
* internal.h (rb_execarg_fixup): follow the definition change.
* io.c (pipe_open): follow rb_execarg_fixup change.
* ext/pty/pty.c (establishShell): ditto.
Wed Jun 20 21:25:37 2012 Tanaka Akira <[email protected]>
* internal.h (struct rb_execarg): add umask_given and umask_mask
fields.
* process.c (STATIC_ASSERT): removed.
(rb_execarg_addopt): follow the rb_execarg change.
(rb_execarg_run_options): ditto.
Wed Jun 20 20:38:23 2012 Tanaka Akira <[email protected]>
* internal.h (struct rb_execarg) moved and renamed from
struct rb_exec_arg in intern.h.
* include/ruby/intern.h (struct rb_exec_arg): refer Data object which
contains struct rb_execarg.
* process.c: use struct rb_execarg instead of struct rb_exec_arg
except functions declared in intern.h.
(rb_exec_arg_addopt): extract a pointer to struct rb_execarg from
struct rb_exec_arg.
(rb_exec_arg_init): ditto.
(rb_exec_arg_fixup): ditto.
(rb_run_exec_options_err): ditto.
(rb_run_exec_options): ditto.
(rb_exec_err): ditto.
(rb_exec): ditto.
* io.c: use struct rb_execarg instead of struct rb_exec_arg.
* ext/pty/pty.c: ditto.
Wed Jun 20 19:13:25 2012 Tanaka Akira <[email protected]>
* internal.h (rb_execarg_new): declared.
(rb_execarg_get): ditto.
* process.c (mark_exec_arg): new function.
(free_exec_arg): ditto.
(memsize_exec_arg): ditto.
(exec_arg_data_type): defined.
(rb_execarg_new): new function.
(rb_execarg_get): ditto.
(rb_f_exec): use rb_execarg_new.
(rb_spawn_internal): ditto.
(rb_f_spawn): ditto.
* io.c (pipe_open_v): use rb_execarg_new.
(pipe_open_s): ditto.
* ext/pty/pty.c (establishShell): use rb_execarg_new.
Wed Jun 20 16:36:14 2012 Nobuyoshi Nakada <[email protected]>
* missing/setproctitle.c (environ): use (*_NSGetEnviron()) instead of
environ on Darwin for namespace cleanness, same as [ruby-core:00537].
[ruby-core:45615] [Bug #6576]
Wed Jun 20 11:33:04 2012 Nobuyoshi Nakada <[email protected]>
* process.c (rb_execarg_addopt): always make Fixnum, and ignore higher
bits in too large umask value.
Wed Jun 20 11:24:35 2012 Nobuyoshi Nakada <[email protected]>
* lib/test/unit.rb (Test::Unit::Runner#_run_parallel): deal with
sudden-death of workers.
Mon Jun 18 20:34:20 2012 KOSAKI Motohiro <[email protected]>
* time.c (init_leap_second_info): fix non-ANSI function declaration.
Mon Jun 18 20:29:04 2012 KOSAKI Motohiro <[email protected]>
* ruby.c (rb_f_sub): use ansi style declaration.
* ruby.c (rb_f_gsub): ditto.
* ruby.c (rb_f_chomp): ditto.
Mon Jun 18 20:26:23 2012 KOSAKI Motohiro <[email protected]>
* random.c (rb_random_int32): get rid of "warning: constant 0x100000000
is so big it is long" warning.
Mon Jun 18 20:07:23 2012 KOSAKI Motohiro <[email protected]>
* dir.c (dir_initialize): get rid of "unused return: argc = rb_scan_args()"
warning.
Mon Jun 18 19:31:20 2012 KOSAKI Motohiro <[email protected]>
* include/ruby/missing.h: include math.h before checking INFINITY
and NAN. Otherwise, strange macro redefinition will occur.
Mon Jun 18 19:12:37 2012 KOSAKI Motohiro <[email protected]>
* array.c (ary_reverse): use ansi style declaration.
Tue Jun 19 18:43:50 2012 Nobuyoshi Nakada <[email protected]>
* include/ruby/backward/rubysig.h: fix visibility. [Bug #6607]
Tue Jun 19 17:51:54 2012 Nobuyoshi Nakada <[email protected]>
* process.c (rb_execarg_run_options): do not call any methods in the
async-signal-safe function. mask has been checked with NUM2MODET()
already and converted with LONG2NUM().
Tue Jun 19 11:59:56 2012 NARUSE, Yui <[email protected]>
* ext/readline/readline.c (Init_readline): don't set 0 to
rl_catch_signals and rl_catch_sigwinch. [Bug #5423]
Tue Jun 19 11:52:59 2012 NARUSE, Yui <[email protected]>
* ext/readline/readline.c (readline_s_get_special_prefixes): suppress
warning: uninitialized instance variable.
Tue Jun 19 11:43:16 2012 NARUSE, Yui <[email protected]>
* ext/readline/readline.c (readline_getc): fix editline compatibility
broken by r36123. [Bug #6601]
Mon Jun 18 17:10:08 2012 Nobuyoshi Nakada <[email protected]>
* string.c (rb_str_subpos): split from rb_str_substr. returns
adjusted position for substring.
Mon Jun 18 10:42:57 2012 Nobuyoshi Nakada <[email protected]>
* ext/readline/readline.c (readline_getc): deal with ESC just followed
by ASCII as meta prefix in incremental search mode. based on the
patch from rctay (Tay Ray Chuan) at [ruby-core:45682]. [Bug #6601]
Sun Jun 17 22:23:53 2012 Nobuyoshi Nakada <[email protected]>
* dir.c (rb_file_directory_p): move documentation for Dir.exist? from
file.c so that the proper description will be shown instead of the
documentation of File.directory?. [ruby-core:45685]
Sun Jun 17 16:21:01 2012 Nobuyoshi Nakada <[email protected]>
* thread_win32.h (rb_thread_lock_t): make a union for USE_WIN32_MUTEX.
this internal is used only in thread_win32.c, but has to be complete
to define rb_thread_t.
* thread_win32.c (native_mutex_lock, native_mutex_destroy): fix for
USE_WIN32_MUTEX.
* thread_win32.c (native_cond_timedwait_ms): rename reserved pattern
name. user defined symbols should not start with __.
Sat Jun 16 19:24:01 2012 Tadayoshi Funaba <[email protected]>
* ext/date/date_core.c: define date_sg_t.
Sat Jun 16 18:46:57 2012 Tadayoshi Funaba <[email protected]>
* ext/date/date_tmx.h: offset in struct tmx_funcs is now int.
* ext/date/date_strftime.c: ditto.
* ext/date/date_core.c: ditto.
Sat Jun 16 18:31:46 2012 Nobuyoshi Nakada <[email protected]>
* eval.c (ruby_setup): set running state in the normal case before
popping a tag.
Sat Jun 16 07:46:03 2012 Nobuyoshi Nakada <[email protected]>
* lib/test/unit.rb (Test::Unit::Runner#_run_parallel): format workers
results in the parent.
Sat Jun 16 07:12:56 2012 Nobuyoshi Nakada <[email protected]>
* tool/runruby.rb (File.realpath): return real path of expanded path.
[Bug #6598]
Sat Jun 16 07:12:28 2012 Nobuyoshi Nakada <[email protected]>
* bootstraptest/runner.rb (main): ignore -j option for compatibility
with test/unit.
Sat Jun 16 07:11:52 2012 Nobuyoshi Nakada <[email protected]>
* lib/test/unit.rb (Test::Unit::Runner#puke): modify only result and
drop useless reports, not override entirely.
* lib/test/unit/parallel.rb (Test::Unit::Worker#_run_suite): report
unformatted results. formatting messages is not a workers task.
* lib/test/unit/parallel.rb (Test::Unit::Worker#puke): store raw
results.
Sat Jun 16 01:27:14 2012 Aaron Patterson <[email protected]>
* ext/psych/lib/psych.rb: bumping psych to 1.3.3
* ext/psych/psych.gemspec: ditto
Fri Jun 15 20:54:28 2012 Kazuhiro NISHIYAMA <[email protected]>
* vm_backtrace.c (backtrace_collect): rename from backtreace_collect.
Fri Jun 15 19:22:13 2012 Koichi Sasada <[email protected]>
* vm_core.h: remove VM_FRAME_MAGIC_FINISH (finish frame type).
Before this commit:
`finish frame' was place holder which indicates that VM loop
needs to return function.
If a C method calls a Ruby methods (a method written by Ruby),
then VM loop will be (re-)invoked. When the Ruby method returns,
then also VM loop should be escaped. `finish frame' has only
one instruction `finish', which returns VM loop function.
VM loop function executes `finish' instruction, then VM loop
function returns itself.
With such mechanism, `leave' instruction (which returns one
frame from current scope) doesn't need to check that this `leave'
should also return from VM loop function.
Strictly, one branch can be removed from `leave' instruction.
Consideration:
However, pushing the `finish frame' needs costs because
it needs several memory accesses. The number of pushing
`finish frame' is greater than I had assumed. Of course,
pushing `finish frame' consumes additional control frame.
Moreover, recent processors has good branch prediction,
with which we can ignore such trivial checking.
After this commit:
Finally, I decide to remove `finish frame' and `finish'
instruction. Some parts of VM depend on `finish frame',
so the new frame flag VM_FRAME_FLAG_FINISH is introduced.
If this frame should escape from VM function loop, then
the result of VM_FRAME_TYPE_FINISH_P(cfp) is true.
`leave' instruction checks this flag every time.
I measured performance on it. However on my environments,
it improves some benchmarks and slows some benchmarks down.
Maybe it is because of C compiler optimization parameters.
I'll re-visit here if this cause problems.
* insns.def (leave, finish): remove finish instruction.
* vm.c, vm_eval.c, vm_exec.c, vm_backtrace.c, vm_dump.c:
apply above changes.
Fri Jun 15 19:11:23 2012 Nobuyoshi Nakada <[email protected]>
* lib/test/unit.rb (Test::Unit::Runner#puke): always add skipped
results to the report for parallel test. [Bug #6595]
Fri Jun 15 09:01:35 2012 Yuki Yugui Sonoda <[email protected]>
* nacl/pepper_main.c: Removed an unnecessary and erroneous inclusion.
Thu Jun 14 22:59:56 2012 Nobuyoshi Nakada <[email protected]>
* configure.in (RUBY_CPPOUTFILE): check if output is really sent to
specified file to tell if -o option works. [ruby-dev:45742]
[Bug#6591]
* configure.in (RUBY_CPPOUTFILE): check if output file is actually
created. [ruby-dev:45742] [Bug#6591]
Thu Jun 14 22:10:50 2012 Tanaka Akira <[email protected]>
* process.c (proc_exec_sh): don't strip leading spaces of the script.
Thu Jun 14 15:54:02 2012 NAKAMURA Usaku <[email protected]>
* file.c (rb_file_s_basename, rb_file_s_dirname): documentation fix.
File.basename and File.dirname support File::ALT_SEPARATOR.
Thu Jun 14 11:10:10 2012 Yuki Yugui Sonoda <[email protected]>
* nacl/pepper_main.c: Applies the new embedding API to pepper_ruby.
Thu Jun 14 10:44:41 2012 Yuki Yugui Sonoda <[email protected]>
* include/ruby/ruby.h: Grouped APIs for embedding CRuby interpreter.
(ruby_setup, ruby_compile_main_from_file,
ruby_compile_main_from_string, ruby_eval_main,
ruby_set_script_name): new APIs to embed CRuby.
(ruby_opaque_t) Opaque pointer to an internal data, to NODE or iseq
in particular.
* eval.c (ruby_setup): Similar to ruby_init but returns an error code
instead of exit(3) on error.
(ruby_eval_main): Similar to ruby_exec_node but returns the
evaluation result.
(ruby_eval_main_internal): renamed from ruby_exec_internal.
* ruby.c (toplevel_context): new helper function.
(PREPARE_EVAL_MAIN): moved.
(process_options): refactored with new functions.
(parse_and_compile_main) new helper function.
(ruby_compile_main_from_file, ruby_compile_main_from_string) new API
(ruby_set_script_name): new API.
Thu Jun 14 10:39:48 2012 Yuki Yugui Sonoda <[email protected]>
* eval.c: Add doxygen comments.
* ruby.c: ditto.
* thread_pthread.c: ditto
* version.c: ditto.
* vm_core.h: ditto.
Thu Jun 14 10:16:07 2012 NARUSE, Yui <[email protected]>
* configure.in: revert r36071 and add NetBSD to blacklist of -ansi.
Thu Jun 14 07:59:12 2012 NARUSE, Yui <[email protected]>
* thread_pthread.c (get_stack): Linux is the only OS which includes
the size of guard page into the stack size.
Thu Jun 14 06:21:00 2012 Eric Hodel <[email protected]>
* lib/drb/drb.rb: Replace broken links to the English DRb book.
Patch by Zachary Scott. [ruby-trunk - Bug #6544]
Thu Jun 14 06:17:47 2012 Eric Hodel <[email protected]>
* lib/observer.rb: Update broken link to the Programming Ruby book.
Patch by Zachary Scott. [ruby-trunk - Bug #6536]
* lib/drb/drb.rb: ditto.
Thu Jun 14 05:23:05 2012 NARUSE, Yui <[email protected]>
* regparse.c (PFETCH_READY): suppress Wunused-but-set-variable.
* regparse.c (is_onechar_cclass): restructured to clarify that c is
used iff found == 1.
Thu Jun 14 02:54:17 2012 NARUSE, Yui <[email protected]>
* configure.in: use -fbuiltin with -ansi -std=iso9899:199409.
This prevents errors introduced by disabling builtin functions,
which is the sub-effect of -ansi/-std.
Now NetBSD can use -ansi -std=iso9899:199409.
Maybe mingw, cygwin and darwin can also.