/
ChangeLog
9175 lines (6748 loc) · 317 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
2012-02-02 Gwenael Casaccio <mrgwen@gmail.com>
Paolo Bonzini <pbonzini@redhat.com>
* libgst/interp.c: Use remove_process_from_list consistently.
2011-12-14 Paolo Bonzini <pbonzini@redhat.com>
* libgst/gst-parse.c: Only increase lookahead by one token at
a time, so that we do not lookahead past EOF.
2011-11-14 Mehul Sanghvi <mehul.sanghvi@gmail.com>
* libgst/cint.c: Add get_environ and pass it to Smalltalk.
2011-09-26 Tony Garnock-Jones <tonygarnockjones@gmail.com>
* libgst/cint.c: Try .dylib as a last resort on Mac OS X.
2011-09-22 Paolo Bonzini <bonzini@gnu.org>
* libgst/save.c: Close file descriptors upon image save.
2011-09-22 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Add the ClockOnImageSave class variable to time.
2011-08-13 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Atomically nil the file descriptor field
when closing a FileDescriptor or socket.
2011-08-13 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Wrap #snapshot in push_jmp_buf/pop_jmp_buf,
since it will do call-ins via _gst_invoke_hook. Suggested by
Gwenael Casaccio.
2011-08-05 Holger Freyther <holger@freyther.de>
* libgst/byte.h: Make smatch happy and add
parameters to the function.
2011-08-01 Mathieu Suen <mathieusuen@yahoo.fr>
* libgst/cint.c: Add long long support for calls.
* libgst/cint.h: Add CDATA_LONGLONG and CDATA_ULONGLONG.
* libgst/dict.c: Pass CLongLongAlignment to Smalltalk.
* libgst/prims.def: Add long long support for memory access.
2011-07-27 Gwenael Casaccio <mrgwen@gmail.com>
Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Use mark stack.
* libgst/oop.h: Define mark stack data structures.
2011-07-27 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Clean up reset_incremental_gc.
* libgst/oop.h: Remove first_allocated_oop.
2011-07-27 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Do not sweep below _gst_mem.last_swept_oop
when initializing the incremental GC.
2011-07-23 Paolo Bonzini <bonzini@gnu.org>
* libgst/sym.c: Remove _gst_symbol_as_string. Suggested by
Gwenael Casaccio.
* libgst/sym.h: Likewise.
2011-07-04 Paolo Bonzini <bonzini@gnu.org>
Gwenael Casaccio <mrgwen@gmail.com>
* libgst/prims.def: Handle fixed instance variables in
VMpr_ArrayedCollection_replaceFromToWithStartingAt, keeping
existing failure conditions when the receiver has no fixed
instance variables.
2011-07-04 Paolo Bonzini <bonzini@gnu.org>
* libgst/events.c: Change _gst_sem_int_vec to async_queue_entry.
Adjust uses. Enqueue it with _gst_async_call_internal.
* libgst/events.h: Change declaration.
* libgst/gstpriv.h: Remove dummy __sync_synchronize. Add __sync_swap
and barrier(). Include events.h later.
* libgst/interp-bc.inl: Use empty_async_queue.
* libgst/interp-jit.inl: Likewise.
* libgst/interp.c: Remove async_queue_entry. Change async signal
vectors to lists. Export do_async_signal and add the new function
_gst_do_async_signal_and_unregister. Add gst_async_call_internal.
Remove async-signal safe stuff from _gst_async_call, and always
allocate an async_queue_entry; use a lockless stack (which is
also async-signal-safe, so the same algorithms can be used in both
cases). Rewrite _gst_have_pending_async_calls and add
empty_async_queue. Adjust copying and marking of the lists.
* libgst/interp.h: Put async_queue_entry here, adding a next pointer.
Add declarations for the new functions.
* libgst/oop.c: Use _gst_async_call_internal.
* libgst/prims.def: Set exception flag when reenabling interrupts.
* libgst/sysdep.c: Include pthread header.
* libgst/cygwin/timer.c: Add void argument list.
* libgst/posix/events.c: Add no_opt to fix removed volatile qualifier.
Adjust access to _gst_sem_int_vec. Enqueue the file polling call with
_gst_async_call_internal.
2011-06-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/callin.c: Fix type of _gst_uint_to_oop argument.
* libgst/callin.h: Fix type of _gst_uint_to_oop argument.
* libgst/gstpub.c: Fix type of gst_uint_to_oop argument.
* libgst/gstpub.h: Fix type of gst_uint_to_oop argument.
2011-05-26 Gwenael Casaccio <mrgwen@gmail.com>
* libgst/dict.c: Fix superclass of MethodDictionary.
2011-05-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.inl: Fix conversion to/from 64-bit values on 32-bit
platforms. Reported by Holger Hans Peter Freyther.
* libgst/prims.def: Ensure conversion between epochs is done with
64-bit math.
2011-05-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Fix conversion between Smalltalk and Unix epoch.
2011-05-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Implement one-argument VMpr_Time_timezoneBias.
2011-05-18 Mathieu Suen <mathieusuen@yahoo.fr>
* libgst/gst-parse.c: Allow creating unary pragmas.
2011-05-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst-parse.c: Move creation of ATTRIBUTE_LIST contents here...
* libgst/tree.c: ... from here.
* libgst/tree.h: Adjust documentation.
2011-04-29 Paolo Bonzini <bonzini@gnu.org>
* libgst/callin.c: Use FROM_C_INT and FROM_C_LONG properly.
Add _gst_uint_to_oop.
* libgst/callin.h: Declare _gst_uint_to_oop.
* libgst/gstpub.c: Add _gst_uint_to_oop to proxy, add gst_uint_to_oop.
* libgst/gstpub.h: Add matching declarations.
2011-04-29 Paolo Bonzini <bonzini@gnu.org>
* libgst/sym.c: Fix argument count of selectors starting with _.
Reported by Mathieu Suen.
2011-04-10 Holger Hans Peter Freyther <holger@freyther.de>
* libgst/cint.c: Free #string, #byteArray, #symbol, #wstring
converted arguments.
2011-03-28 Holger Hans Peter Freyther <holger@freyther.de>
* libgst/prims.def: Set errno for VMpr_FileDescriptor_socketOp.
2011-03-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Fix crashes with unexpected integer arguments.
2011-03-24 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.inl: Fix brokenness on non-x86 platforms.
2011-03-12 Paolo Bonzini <bonzini@gnu.org>
* libgst/callin.c: Remove dead code signaled by clang analyzer.
* libgst/cint.c: Likewise.
* libgst/comp.c: Likewise, and add missing INC_RESTORE_POINTER.
* libgst/dict.c: Likewise.
* libgst/interp.c: Likewise.
* libgst/mpz.c: Likewise.
* libgst/oop.c: Likewise.
* libgst/opt.c: Likewise.
* libgst/re.c: Likewise.
2011-03-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/opt.c: Add missing verification rule.
2011-02-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.inl: Fix creation of FloatQ's on non-x86 platforms.
2011-02-24 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: Fix GC bug reported by Gwenael Casaccio.
2011-02-14 Holger Hans Peter Freyther <holger@freyther.de>
* libgst/interp.c: Always inline unwind_context.
2011-02-11 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Fix previous patch. Add printf for coverage
of variadic functions.
2011-02-04 Holger Hans Peter Freyther <holger@freyther.de>
* libgst/cint.c: Propagate type conversion failures.
2011-02-04 Holger Hans Peter Freyther <holger@freyther.de>
* libgst/sockets.c: Add size check for the socket addr.
2011-01-27 Paolo Bonzini <bonzini@gnu.org>
* libgst/gstpriv.h: Return boolean values from IS_OOP_*.
* libgst/oop.inl: Likewise.
2011-01-14 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Accept UndefinedObject for #cObjectPtr.
2011-01-10 Paolo Bonzini <bonzini@gnu.org>
* libgst/files.c: Load Autoload.st last.
2011-01-10 Paolo Bonzini <bonzini@gnu.org>
Mathiue Suen <mathieusuen@yahoo.fr>
* libgst/dict.inl: Fix 32-bit #int and 64-bit #uint limits.
2010-12-05 Paolo Bonzini <bonzini@gnu.org>
* lib-src/sockets.c: Use O_NONBLOCK from socketx.h.
2010-12-04 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.inl: Avoid crash on #changeClassTo: and UnicodeString.
2010-11-10 Paolo Bonzini <bonzini@gnu.org>
* libgst/heap.c: Detect out-of-memory.
2010-11-10 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: Change the stack top to nil in _gst_sync_wait
and put the semaphore back in _gst_sync_signal. This allows
Smalltalk code to distinguish interruptions from successful waits.
2010-11-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/memzero.h: Remove.
* libgst/dict.c: Replace memzero with memset.
* libgst/dict.inl: Replace memzero with memset.
* libgst/gstpriv.h: Replace memzero with memset.
* libgst/heap.c: Replace memzero with memset.
* libgst/lex.c: Replace memzero with memset.
* libgst/mpz.c: Replace memzero with memset.
* libgst/opt.c: Replace memzero with memset.
* libgst/prims.def: Replace memzero with memset.
* libgst/save.c: Replace memzero with memset.
* libgst/xlat.c: Replace memzero with memset.
2010-11-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: Streamline unwind_context even more. The compiler
can do enough optimization that we can use the free_lifo_context
global directly. Also, _gst_nil_oop is kept in a register so
icache-wise it pays to always do the store into parentContext.
2010-11-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.inl: Add instantiate_numbytes, use it for instantiate
and non-pointer instantiate_with; do not unroll nil initialization
since N is usually small here. Rewrite nil_fill.
* libgst/interp.c: Unroll the first few itertaions of prepare_context.
Do not use nil_fill.
* libgst/md-config.h: Remove loop unrolling macros.
2010-11-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/md-config.h: Tune for x86-64.
2010-11-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.inl: Add optimized x86 versions of tagged arithmetic
operations.
2010-11-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.inl: Add here functions for SmallInteger OOP arithmetic.
* libgst/prims.def: Use the new functions.
* libgst/vm.def: Use the new functions.
2010-11-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Reorder printing of statistics so that the results
are not influenced by printing the result and by the #afterEval
hooks.
2010-10-31 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep/posix/events.c: Remove pthread_in_use.
2010-10-30 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep/posix/events.c: Include pthread.h if using pthreads.
2010-10-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: NULL-terminate the output of VMpr_String_asCData.
Suggested by Holger Hans Peter Freyther.
2010-10-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Retrieve CCallbackDescriptor on image load.
2010-09-27 Holger Hans Peter Freyther <zecke@selfish.org>
* libgst/oop.c: Fix a typo.
2010-09-27 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst-parse.c: Correctly handle scoped methods within
a class block.
2010-09-27 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst-parse.c: Fix NULL pointer dereference.
2010-09-25 Gwenael Casaccio <mrgwen@gmail.com>
* libgst/gst-parse.c: Support multi-keyword class attributes.
2010-07-27 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.h: Correctly use size_t/ssize_t.
* libgst/sysdep/common/files.c: Likewise.
* libgst/prims.def: Likewise. Remove duplicate checks.
2010-07-27 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.h: Remove _gst_full_write.
* libgst/sysdep/common/files.c: Move _gst_full_write...
* libgst/save.c: ... here. longjmp out to _gst_save_to_file when
it fails.
2010-07-27 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Fix warnings.
* libgst/real.c: Fix out-of-bounds array access (which is actually
unreachable, but GCC still warns).
* libgst/prims.def: Fix two warnings.
* libgst/sysdep/win32/signals.c: Fix warning.
2010-07-04 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Fix GC_DEBUGGING compilation. Fix GC bug in
"ObjectMemory current".
2010-06-13 Paolo Bonzini <bonzini@gnu.org>
* libgst/callin.c: Use _gst_copy_oop_range and _gst_mark_oop_range.
* libgst/oop.c: Rewrite tail recursion in _gst_mark_an_oop_internal.
Add _gst_mark_oop_range.
* libgst/oop.h: Add _gst_mark_oop_range, change prototype of
_gst_mark_an_oop_internal.
* libgst/oop.inl: Remove COPY_OOP_RANGE and MARK_OOP_RANGE, adjust
MAYBE_MARK_OOP.
2010-06-13 Paolo Bonzini <bonzini@gnu.org>
* libgst/sockets.c: "Touch" all pointer arguments to socket
system calls to avoid EFAULT.
2010-06-06 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep/posix/time.c: Fix previous change for millisecond
vs. microsecond confusion.
2010-05-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep/posix/time.c: Prefer using nanosleep to usleep.
usleep is totally broken under Solaris 8 and 9. Reported by Rick
Flower.
2010-05-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/files.c: Load DynVariable.st.
2010-05-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Flush aggressively around _gst_execute_statements.
* libgst/gst-parse.c: Likewise.
2010-04-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/sockets.c: Fix previous commit.
2010-04-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/sockets.c: Make connect return int.
2010-04-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/input.c: Remove dead code.
2010-04-11 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep/win32/events.c: Ahem, this really could not work.
2010-04-11 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Fix warnings on platforms with no lstat.
2010-03-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/sockets.c: Fix logic for no SOCK_CLOEXEC or no accept4.
2010-02-20 Paolo Bonzini <bonzini@gnu.org>
* libgst/files.c: Adjust for AnsiExcept.st rename.
2010-02-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/vm.def: Make EXIT_INTERPRETER safer since we now can fork
CallinProcesses to Processes.
2010-02-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Compile the termination method with an infinite
loop to avoid falling off the last context.
2010-02-05 Gwenael Casaccio <mrgwen@gmail.com>
* libgst/sysdep/posix/events.c: Fix initialization of waiting_thread.
2010-01-11 Paolo Bonzini <bonzini@gnu.org>
* libgst/genbc-decl.y: Embarrassing typo.
2010-01-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/mpz.c: Hack to build with GMP 5.
2010-01-01 Paolo Bonzini <bonzini@gnu.org>
* Update copyright years.
2009-12-11 Gwenael Casaccio <mrgwen@gmail.com>
* libgst/prims.def: Fix bug in similarityTo:.
2009-12-09 Alexey Zakhlestin <indeyets@gmail.com>
* libgst/gstpriv.h: Include sockets.h.
* libgst/print.c: Fix printf.
* libgst/socklen.c: Use socklen_t where appropriate.
* libgst/sym.c: Remove useless cast.
* libgst/sysdep/common/files.c: Fix 64-bit cleanliness problems.
* libgst/sysdep/posix/findexec.c: Likewise.
2009-12-05 Paolo Bonzini <bonzini@gnu.org>
* libgst/byte.c: Add LN_ABSOLUTE, emit relative line number bytecodes
together with _following_ bytecode.
* libgst/byte.h: Add LN_ABSOLUTE.
* libgst/comp.c: Emit absolute line number for the line with the
selector.
* libgst/opt.c: Remove now useless two-line-numbers optimization.
2009-11-26 Lee Duhem <lee.duhem@gmail.com>
* libgst/comp.c: Make formatted source of Behavior>>methodsFor: look
better.
2009-11-12 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Pass PREFIX and EXEC_PREFIX.
2009-11-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Do not fail on pow(0.0, 0.0).
2009-11-01 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Fix computation of jump lengths.
2009-10-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/gstpub.c: Move init_vmproxy and _gst_get_vmproxy...
* libgst/callin.c: ... here. Make_gst_init_vmproxy public, do
not call it from _gst_get_vmproxy.
* libgst/callin.h: Declare them here...
* libgst/files.h: ... not here.
* libgst/files.c: Call _gst_init_vmproxy.
2009-10-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep/win32/events.c: Implement pause/wakeup.
2009-10-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/sockets.c: Fix !HAVE_IPV6 compilation, and other Cygwin
problems.
2009-10-13 Nigel Williams <nigelw@elder-gods.net>
* libgst/cint.c: Always open with lt_dlopen first, then try
lt_dlopenext.
2009-10-13 Eli Green <detgk@me.com>
* libgst/events.h: Fix multiply defined symbols on Mac OS X.
2009-10-06 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Fix #becomeForward: to look at LIFO contexts.
2009-10-04 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Allow reusing #at: primitive for #at:ifAbsent:.
2009-10-04 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Implement memchr primitive.
2009-09-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep/win32/signals.c: Simplify given known set of valid
signals.
2009-09-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/events.h: Add _gst_get_fd_error.
* libgst/sysdep/win32/events.c: Implement it.
* libgst/sysdep/posix/events.c: Implement it as a stub.
* libgst/sockets.c: Use it in getSoError.
2009-09-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep/win32/events.c: Extract select-based polling from
poll_thread, use it in _gst_sync_file_polling and
_gst_async_file_polling, save error conditions returned
by WSAEnumNetworkEvents.
2009-09-03 Paolo Bonzini <bonzini@gnu.org>
* libgst/gst-parse.c: Fix crash on invalid class variable definitions.
2009-08-26 Paolo Bonzini <bonzini@gnu.org>
Complete transition from events.c to sysdep/*/events.c, moving
the common parts back outside sysdep/ and adding a stab at the
Win32 version. This lets us throw Makefile/lib-src hacks away.
* libgst/gstpriv.h: Include signal.h, do not include poll.h.
* libgst/events.h: Add _gst_register_socket.
* libgst/sysdep.h: Add _gst_wait_for_input. Remove TIMER_REAL,
TIMER_PROCESS.
* libgst/input.c: Use _gst_wait_for_input and _gst_sync_file_polling.
* libgst/sockets.c: Use gstpriv.h. Do _gst_register_socket. Do
not warn under mingw.
* libgst/interp.c: Cope with nonexistent SIGUSR1. Avoid useless
abstraction in _gst_signal_after.
* libgst/sysdep/common/files.c: Cope with nonexistent SIGPIPE.
* libgst/sysdep/cygwin/timer.c: Adjust for changes in sysdep.h.
* libgst/sysdep/posix/timer.c: Adjust for changes in sysdep.h.
* libgst/sysdep/win32/timer.c: Adjust for changes in sysdep.h.
* libgst/sysdep/win32/events.c: Rewrite.
* libgst/sysdep/win32/signals.c: Remove signals not found under mingw.
* libgst/sysdep/posix/events.c: Add _gst_register_socket and
_gst_wait_for_input. Adjust to move OS-independent parts...
* libgst/events.c: ... here.
2009-08-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Just skip primitives that are unknown to the image.
2009-08-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/sockets.c: Move from packages/sockets/.
* libgst/sockets.h: New.
* libgst/files.c: Initialize sockets.
2009-08-24 Paolo Bonzini <bonzini@gnu.org>
Nicolas Petton <petton.nicolas@gmail.com>
* libgst/dict.inl: Add num_valid_oops.
* libgst/prims.def: Add becomeForward primitive.
2009-08-23 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.inl: Fix ??? comment.
2009-08-23 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Export finished_incremental_gc.
* libgst/oop.h: Declare _gst_finished_incremental_gc. Use
maybe_release_xlat.
* libgst/oop.inl: Fix bottom-to-top incremental collector.
2009-08-23 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Rename highest_swept_oop to next_oop_to_sweep,
shift it down by one.
2009-08-23 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Always do _gst_finish_incremental_gc so that
finished_incremental_gc is called.
2009-08-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/events.h: Declare it.
* libgst/sysdep/posix/events.c: Add _gst_wakeup.
* libgst/sysdep/win32/events.c: Ditto.
* libgst/gstpub.c: Add it to VMproxy and add gst_wakeup.
* libgst/gstpub.h: Add wakeUp to VMproxy, add gst_wakeup.
* libgst/interp.c: Call _gst_wakeup from _gst_async_call.
2009-08-22 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.h: Tweak.
* libgst/sysdep.c: Split into...
* libgst/sysdep/common/files.c, libgst/sysdep/common/time.c,
libgst/sysdep/cygwin/files.c, libgst/sysdep/cygwin/findexec.c,
libgst/sysdep/cygwin/mem.c, libgst/sysdep/cygwin/signals.c,
libgst/sysdep/cygwin/time.c, libgst/sysdep/cygwin/timer.c,
libgst/sysdep/posix/files.c, libgst/sysdep/posix/findexec.c,
libgst/sysdep/posix/mem.c, libgst/sysdep/posix/signals.c,
libgst/sysdep/posix/time.c, libgst/sysdep/posix/timer.c,
libgst/sysdep/win32/files.c, libgst/sysdep/win32/findexec.c,
libgst/sysdep/win32/mem.c, libgst/sysdep/win32/signals.c,
libgst/sysdep/win32/time.c, libgst/sysdep/win32/timer.c: ... all
these.
* libgst/events.c: Copy to...
* libgst/sysdep/posix/events.c: ... this...
* libgst/sysdep/win32/events.c: ... and this.
* libgst/sysdep/cygwin/events.c: New.
2009-08-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/events.c: Add _gst_pause.
* libgst/events.h: Declare it.
* libgst/interp.c: Add active_process_yield.
* libgst/prims.def: Use it. Remove sleeping from VMpr_Processor_yield.
Add VMpr_Processor_pause. Return whether incremental GC has finished
in the VMpr_ObjectMemory_incrementalGCStep primitive.
* libgst/sysdep.c: Add _gst_usleep.
* libgst/sysdep.h: Declare it.
2009-08-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Track correctly the bottom-to-top sweeping of OOPs.
Return from _gst_incremental_gc_step whether incr. GC has finished.
* libgst/oop.h: Adjust prototype.
* libgst/oop.inl: Track here the bottom-to-top sweeping of OOPs.
2009-08-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Add dlopen functions for modules.
* libgst/cint.h: Declare them.
* libgst/gstpub.c: Implement public variants and add to VMProxy.
* libgst/gstpub.h: Declare public variants.
2009-08-01 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp.c: Do not create gcSemaphore.
* libgst/oop.c: Abort upon absence of gcSemaphore.
2009-08-01 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Remove Delay, SharedQueue, MappedCollection, Bag.
* libgst/dict.h: Likewise.
* libgst/files.c: Move them after initialization.
2009-07-28 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Add git revision number to Version contents.
2009-07-26 Paolo Bonzini <bonzini@gnu.org>
* libgst/genbc-parse.y: Fix uninitialized memory use that
"interestingly" triggered only under Wine.
2009-07-25 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.h: Return 64-bit millisecond clock.
* libgst/sysdep.c: Return 64-bit millisecond clock, use monotonic
clock_gettime if available.
* libgst/prims.def: Return 64-bit millisecond clock.
2009-07-23 Paolo Bonzini <bonzini@gnu.org>
* libgst/gstpriv.h: Add optimization barrier.
* libgst/vm.def: Use it.
* libgst/prims.def: Eliminate uninitialized variable.
2009-07-22 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.c: Small cleanup.
2009-07-20 Paolo Bonzini <bonzini@gnu.org>
* libgst/genpr-parse.y: Fix for newer bison.
2009-07-11 Paolo Bonzini <bonzini@gnu.org>
* libgst/lex.c: Use new real.c interface.
* libgst/real.c: New.
* libgst/real.h: New.
2009-07-02 Paolo Bonzini <bonzini@gnu.org>
* libgst/input.c: Include all symbols after popular demand for
completion.
2009-06-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/lex.c: Fix my own snafu.
2009-06-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Check for infinite recursion of #doesNotUnderstand:
before printing the result of an evaluation.
2009-06-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.inl: Pad long doubles to 16 bytes.
2009-06-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/lex.c: Fix parsing of 16r2.ABCDEFd.
2009-06-15 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Fix typo.
2009-06-08 Paolo Bonzini <bonzini@gnu.org>
* libgst/mpz.c: Return whether large integer->float conversion was
exact.
* libgst/mpz.h: Adjust prototypes.
* libgst/prims.def: Fail on inexact conversions.
2009-03-30 Derek Zhou <agonyzhou@comcast.net>
Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Do not reset counters if profiling is on.
* libgst/interp-bc.inl: Make state consistent when
profiling callbacks might be called.
* libgst/interp.c: Likewise.
* libgst/dict.c: Add profiling callback.
* libgst/dict.h: Add profiling callback.
* libgst/interp-bc.inl: Call it.
* libgst/interp.c: Declare variables.
* libgst/interp.h: Declare variables.
* libgst/prims.def: Add profiling primitive.
2009-03-05 Paolo Bonzini <bonzini@gnu.org>
* libgst/files.c: Load RecursionLock.st before Transcript.st.
2009-02-19 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.c: Fix off-by-one in _gst_identity_dictionary_at_put.
2009-01-23 Derek Zhou <agonyzhou@comcast.net>
* libgst/oop.c: Allow shrinking the heap down to the eden's size.
2009-01-21 Derek Zhou <agonyzhou@comcast.net>
* libgst/oop.c: Only compact if there were lots of garbage,
shrinking the heap limit at the same time.
2009-01-19 Paolo Bonzini <bonzini@gnu.org>
Derek Zhou <agonyzhou@comcast.net>
* libgst/oop.c: Always call _gst_finish_incremental_gc before
a non-growing compaction of the heap.
2009-01-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Add chown.
2008-12-30 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Discard EPIPE too, it is caught by POLLHUP.
2008-12-07 Paolo Bonzini <bonzini@gnu.org>
* libgst/oop.c: Resize the oldspace if tenuring needs more space than
we would have liked to have, but then do a GC if this happens.
2008-11-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/alloc.c: Use fixed values for MMAP_AREA_SIZE and
MMAP_THRESHOLD.
2008-10-23 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Do not modify already-complete blocks.
* libgst/interp-bc.inl: Sync _gst_send_method and _gst_send_message_internal.
2008-10-21 Paolo Bonzini <bonzini@gnu.org>
* libgst/xlat.c: Fix ISO C99-ism.
2008-10-20 Paolo Bonzini <bonzini@gnu.org>
* libgst/interp-jit.inl: Fix compilation error.
2008-10-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/dict.h: Remove ATTRIBUTE_PURE from functions that are CSEable,
but write to memory (typically by memoizing values or allocating OOPs).
* libgst/input.h: Likewise.
* libgst/interp.c: Likewise.
* libgst/opt.h: Likewise.
* libgst/sym.h: Likewise.
* libgst/opt.c: Change compute_jump_length to be const.
2008-09-22 Paolo Bonzini <bonzini@gnu.org>
* cint.c: Fix ia64 cobjects.st failure by always using a ffi_arg-sized
field.
2008-09-22 Paolo Bonzini <bonzini@gnu.org>
* genpr-parse.c: Rename strupr.
* genpr-parse.h: Rename strupr.
* genpr-parse.y: Rename strupr.
2008-09-22 Paolo Bonzini <bonzini@gnu.org>
* input.c: Revert 2008-09-18 change. Check whether get_cur_file()
returns nil instead.
2008-09-21 Paolo Bonzini <bonzini@gnu.org>
* alloc.h: Change nomemory hook prototype.
* alloc.c: Use return value of nomemory hook.
* oop.c: Pass new oldspace heap back from nomemory hook.
2008-09-20 Paolo Bonzini <bonzini@gnu.org>
* cint.c: Adjust calls to _gst_show_backtrace.
* gstpub.c: Add gst_show_backtrace and declare it in VMProxy.
* gstpub.h: Likewise.
* interp.c: Adjust calls to _gst_show_backtrace, add FILE *
argument there.
* interp.h: Adjust prototype of _gst_show_backtrace.
* prims.def: Adjust calls to _gst_show_backtrace.
2008-09-18 Paolo Bonzini <bonzini@gnu.org>
* input.c: Do not create FileSegments for non-FileStream streams.
2008-09-14 Paolo Bonzini <bonzini@gnu.org>
* cint.c: Fix possible GC bugs.
2008-09-02 Paolo Bonzini <bonzini@gnu.org>
* prims.def: Do not use closesocket, close is now emulated
on Windows.
2008-08-18 Paolo Bonzini <bonzini@gnu.org>
* libgst/comp.c: Mark the termination method as annotated.
2008-08-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/prims.def: Add socket<->fd conversions.
* libgst/sysdep.c: Likewise.
2008-08-17 Paolo Bonzini <bonzini@gnu.org>
* libgst/sysdep.c: Emulate FD_CLOEXEC on MinGW.
2008-08-11 Paolo Bonzini <bonzini@gnu.org>
* libgst/cint.c: Do not pass POLLHUP errors to Smalltalk.
2008-08-08 Samuel Tardieu <sam@rfc1149.net>
* libgst/sysdep.c (do_interrupts): Remove unused prototype.
(DISABLED_MASK): Add SIGQUIT.
2008-08-08 Samuel Tardieu <sam@rfc1149.net>
* libgst/sysdep.c (_gst_open_pipe): Remove unused variable.
2008-08-08 Samuel Tardieu <sam@rfc1149.net>
* libgst/sysdep.c (find_executable): Correctly zero-terminate
"location" before returning it.
2008-08-07 Paolo Bonzini <bonzini@gnu.org>
* gstpriv.h: Define __sync_synchronize.
* interp.h: Do not export _gst_except_flag if not JIT.
* interp.c: Use a separate queue for async calls scheduled
from a signal handler. Protect other async call queue accesses
with a lock. Add memory barriers.
* interp-bc.inl: Protect async call queue accesses with a lock.
Add memory barriers.
* interp-jit.inl: Protect async call queue accesses with a lock.
Add memory barriers. Reset _gst_except_flag earlier.
Use the return value of _gst_run_native_code to check if the
termination method was invoked.
* sysdep.h: Define _gst_signal_count.
* sysdep.c: Use it instead of a static variable.
2008-08-06 Paolo Bonzini <bonzini@gnu.org>
* events.c: Reset errno if _gst_sync_file_polling finds
POLLHUP, POLLERR or POLLNVAL.
* events.h: Document this.
2008-08-06 Paolo Bonzini <bonzini@gnu.org>
* events.c: Use _gst_{dis,en}able_interrupts (true);
make a worker function for _gst_remove_fd_polling_handlers and
file_polling_handler. Call it asynchronously from
file_polling_handler. Do not disable interrupts from
_gst_async_file_polling.
* gstpub.c: Export _gst_async_call and _gst_sync_signal.
* gstpub.h: Likewise.
* interp-bc.inl: Perform asynchronous calls.
* interp-jit.inl: Perform asynchronous calls.
* interp.c: Adjust async_queue_entry for asynchronous calls.
Export sync_signal. Adjust calls to _gst_{dis,en}able_interrupts.
* interp.h: Declare _gst_async_call and _gst_sync_signal.
* sysdep.c: Rewrite _gst_{dis,en}able_interrupts to rely on
sigaction setting the mask on POSIX systems. Set up the
mask in _gst_set_signal_handler.
* sysdep.h: Adjust prototypes, adjust documentation of
_gst_set_signal_handler.
2008-08-06 Paolo Bonzini <bonzini@gnu.org>
* interp-bc.inl: Change disable_preemption to async_queue_enabled.
* interp-jit.inl: Likewise.
* interp.c: Make queued_async_signals a dynamic array. Make
sync_signal able to behave like Semaphore>>#notify. Do not
disable/enable interrupts on behalf of the Smalltalk program;
async_queue_enabled already fakes that. Do not disable/enable
interrupts in the synchronized wait/signal functions.
* prims.def: Do not disable/enable interrupts around the
synchronized wait/signal functions.
2008-08-06 Paolo Bonzini <bonzini@gnu.org>
* input.c: Do not use #nextHunk.
2008-08-05 Paolo Bonzini <bonzini@gnu.org>
* dict.c: Adjust layout of FileDescriptor and FileStream. Do not
fill in FileStream variables in FileDescriptors.
* dict.h: Likewise.
* prims.def: Adjust uses of gst_file_stream.
2008-08-05 Paolo Bonzini <bonzini@gnu.org>
* dict.c: Remove _gst_byte_stream_class. Change superclass of
FileDescriptor.
* dict.h: Likewise.
* files.c: Do not load ByteStream.st.
2008-08-05 Paolo Bonzini <bonzini@gnu.org>
* dict.c: Add _gst_iterable_class. Change superclass of
Collection and Stream.
* dict.h: Likewise.
* files.c: Load Iterable.st.
2008-08-04 Paolo Bonzini <bonzini@gnu.org>
* interp.c: Move ignored signals...
* sysdep.c: ... here. Reset them for exec-ed executables.
2008-08-01 Paolo Bonzini <bonzini@gnu.org>
* sysdep.c: Use O_CLOEXEC if available instead of FD_CLOEXEC.
2008-08-01 Paolo Bonzini <bonzini@gnu.org>
* sysdep.c: Always set SIGCHLD handler, and invoke the file
interrupt handler from it. This makes sure that all children
are reaped.
2008-08-01 Paolo Bonzini <bonzini@gnu.org>