/
ChangeLog
11208 lines (9038 loc) · 440 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
[7.2q]
2023-05-25 Ivan Maidanski <ivmai@mail.ru>
* doc/README: Bump version to 7.2q (rev. Q).
* Makefile.am (libgc_la_LDFLAGS): Bump version-info to 2:6:1.
* Makefile.in: Regenerate.
2023-05-16 Ivan Maidanski <ivmai@mail.ru>
* mark_rts.c (GC_exclude_static_roots_inner): Move check of
GC_excl_table_entries upper to be before first access to GC_excl_table;
move i local variable down to be near place of usage; cast result of
next-GC_excl_table to size_t.
2023-05-16 Ivan Maidanski <ivmai@mail.ru>
* alloc.c [SET_REAL_HEAP_BOUNDS && INCLUDE_LINUX_THREAD_DESCR]
(GC_add_to_heap): If endp is greater than GC_greatest_real_heap_addr
then add [p,endp) region to the data roots exclusions; add comment.
* include/private/gc_priv.h [INCLUDE_LINUX_THREAD_DESCR]
(SET_REAL_HEAP_BOUNDS, GC_least_real_heap_addr,
GC_greatest_real_heap_addr): Define.
2023-05-13 Ivan Maidanski <ivmai@mail.ru>
* alloc.c [SET_REAL_HEAP_BOUNDS] (GC_add_to_heap): Update
GC_least_real_heap_addr and GC_greatest_real_heap_addr variables.
* dbg_mlc.c [KEEP_BACK_PTRS && ALIGNMENT == 1] (GC_get_back_ptr_info):
Compare alternate_target and target to GC_least_real_heap_addr
and GC_greatest_real_heap_addr (instead of GC_least_plausible_heap_addr
and GC_greatest_plausible_heap_addr).
* include/gc_mark.h (GC_greatest_plausible_heap_addr): Refine
comment.
* include/private/gc_priv.h [GC_ASSERTIONS || KEEP_BACK_PTRS
&& ALIGNMENT == 1] (SET_REAL_HEAP_BOUNDS): Define macro.
* include/private/gc_priv.h [GC_ASSERTIONS || KEEP_BACK_PTRS
&& ALIGNMENT == 1] (GC_least_real_heap_addr,
GC_greatest_real_heap_addr): Define (as macro).
* include/private/gc_priv.h [GC_ASSERTIONS || KEEP_BACK_PTRS
&& ALIGNMENT == 1] (_GC_arrays._least_real_heap_addr,
_GC_arrays._greatest_real_heap_addr): New field; add comment.
* mark.c (GC_mark_from): Use GC_greatest_real_heap_addr and
GC_least_real_heap_addr instead of GC_least_plausible_heap_addr and
GC_greatest_plausible_heap_addr, respectively, in assertions.
2023-05-13 Ivan Maidanski <ivmai@mail.ru>
* blacklst.c: Fix old file name in comment ("gc_priv.h").
* include/private/gcconfig.h: Likewise.
* tools/setjmp_t.c (main): Fix old file name in message ("gc_priv.h").
2023-04-25 Ivan Maidanski <ivmai@mail.ru>
* typd_mlc.c (GC_calloc_explicitly_typed): If descr_type is NO_MEM then
return the result of GC_get_oom_fn()(lb) instead of NULL.
2023-03-24 Ivan Maidanski <ivmai@mail.ru>
* malloc.c (GC_generic_malloc_inner): Fix a typo
("to directly allocate") in comment.
2023-03-18 Ivan Maidanski <ivmai@mail.ru>
* dbg_mlc.c (store_old): Fix name in comment ("GC_register_finalizer").
* include/gc.h (GC_java_finalization): Fix name in comment
("GC_register_finalizer_unreachable").
2023-03-16 Ivan Maidanski <ivmai@mail.ru>
* cord/tests/cordtest.c (test_basics): Adjust indentation of
CORD_next() call inside while loop.
2023-02-28 Ivan Maidanski <ivmai@mail.ru>
* pthread_support.c (GC_start_rtn_prepare_thread): Fix a typo in
comment ("used in").
2023-02-20 Amaury Sechet <deadalnix@gmail.com>
* docs/scale.html (The Parallel Marking Algorithm): Fix a typo
("our approach").
2023-02-12 Ivan Maidanski <ivmai@mail.ru>
* ChangeLog: Fix a typo ("STATIC").
2023-02-03 Ivan Maidanski <ivmai@mail.ru>
* os_dep.c [!OS2 && !MSWIN32 && !MSWINCE && !CYGWIN32 && !AMIGA
&& !OPENBSD && !PCR && MACOS && !THINK_C && __MWERKS__ && !__POWERPC__
&& __option(far_data)] (GC_register_data_segments): Fix typo in
comment ("the").
2023-01-28 Ivan Maidanski <ivmai@mail.ru>
* misc.c (GC_set_oom_fn): Move GC_ASSERT() to be after DCL_LOCK_STATE.
2023-01-17 Ivan Maidanski <ivmai@mail.ru>
* doc/README.Changes (4.3): Fix typo ("it's").
* doc/README.amiga (GC_AMIGA_GC): Likewise.
* extra/AmigaOS.c (GC_amiga_allocwrapper_any): Fix typo in comment
("it's").
* malloc.c (GC_free): Likewise.
* new_hblk.c (GC_build_fl): Likewise.
* os_dep.c (GC_FreeBSDGetDataStart): Likewise.
* reclaim.c (GC_start_reclaim): Likewise.
2023-01-17 Ivan Maidanski <ivmai@mail.ru>
* pthread_support.c [CAN_HANDLE_FORK && (GC_DARWIN_THREADS
|| THREAD_LOCAL_ALLOC && !USE_CUSTOM_SPECIFIC)]
(GC_remove_all_threads_but_me): Rename GC_free_internal to
GC_free_inner in comments.
* win32_threads.c [CAN_HANDLE_FORK && THREAD_LOCAL_ALLOC
&& !USE_CUSTOM_SPECIFIC] (GC_remove_all_threads_but_me): Likewise.
2023-01-03 Ivan Maidanski <ivmai@mail.ru>
* tests/test.c [DBG_HDRS_ALL] (run_one_test): Set y to fail_proc1
right before its use; call CHECK_OUT_OF_MEMORY() before each GC_size()
invocation; call CHECK_OUT_OF_MEMORY() before GC_base().
2023-01-03 Ivan Maidanski <ivmai@mail.ru>
* ChangeLog: Fix typo ("GC_allochblk_nth").
* include/private/gc_priv.h (GC_alloc_large): Fix typo in comment
("GC_allochblk_nth").
2022-12-30 Ivan Maidanski <ivmai@mail.ru>
* pthread_support.c [NACL] (GC_delete_thread): Do not call
GC_nacl_shutdown_gc_thread() and do not clear GC_nacl_gc_thread_self.
* pthread_support.c [NACL] (GC_unregister_my_thread_inner): Call
GC_nacl_shutdown_gc_thread() and clear value of GC_nacl_gc_thread_self
(after GC_destroy_thread_local).
* pthread_support.c [NACL] (GC_register_my_thread): If KNOWN_FINISHED
then set GC_nacl_gc_thread_self to me and call
GC_nacl_initialize_gc_thread().
2022-12-01 Ivan Maidanski <ivmai@mail.ru>
* pthread_start.c [GC_PTHREADS && !GC_WIN32_THREADS && NACL]
(GC_pthread_start_inner): Call GC_thread_exit_proc(me) before return.
2022-11-13 Ivan Maidanski <ivmai@mail.ru>
* pthread_support.c [PARALLEL_MARK]
(GC_start_mark_threads_inner): Do not pass errno value to WARN() call
(because pthread_create does not set errno).
2022-11-02 Ivan Maidanski <ivmai@mail.ru>
* doc/README.macros (REDIRECT_REALLOC): Fix typo ("realloc" w/o GC_
prefix).
2022-10-22 Ivan Maidanski <ivmai@mail.ru>
* Makefile.direct (OBJS): Add comment.
* Makefile.direct (libalphagc.so): Add dependency on dyn_load.o.
2022-10-13 Ivan Maidanski <ivmai@mail.ru>
* win32_threads.c [THREAD_LOCAL_ALLOC] (GC_register_my_thread_inner):
Update comment; do not call GC_init_thread_local().
* win32_threads.c [THREAD_LOCAL_ALLOC] (GC_register_my_thread): Call
GC_init_thread_local() both after GC_register_my_thread_inner() and
GC_record_stack_base() calls (in case of return GC_SUCCESS).
* win32_threads.c [GC_PTHREADS && THREAD_LOCAL_ALLOC]
(GC_pthread_start_inner): Call GC_init_thread_local().
2022-10-11 Ivan Maidanski <ivmai@mail.ru>
* pthread_support.c (pthread_create): Call ABORT() if
pthread_attr_getdetachstate() has failed.
* win32_threads.c [GC_PTHREADS] (GC_pthread_create): Likewise.
* win32_threads.c [GC_PTHREADS] (start_info.detached): Change type from
GC_bool to int (to match the type of the 2nd argument of
pthread_attr_getdetachstate).
2022-09-30 Ivan Maidanski <ivmai@mail.ru>
* win32_threads.c (dll_thread_table): Fix a typo ("use") in comment.
2022-09-28 Ivan Maidanski <ivmai@mail.ru>
* win32_threads.c [GC_WINMAIN_REDIRECT]
(GC_waitForSingleObjectInfinite): Add GC_CALLBACK.
2022-09-27 Ivan Maidanski <ivmai@mail.ru>
* ptr_chck.c [!THREADS && (DYNAMIC_LOADING || MSWIN32 || MSWINCE
|| CYGWIN32 || PCR)] (GC_is_visible): Do not call
GC_register_dynamic_libraries() followed by GC_is_static_root()
if GC_no_dls.
2022-09-27 Ivan Maidanski <ivmai@mail.ru>
* dyn_load.c [SOLARISDL || !LINUX]: Rename USE_PROC to
USE_PROC_FOR_LIBRARIES in comment.
2022-09-22 Ivan Maidanski <ivmai@mail.ru>
* win32_threads.c [GC_PTHREADS && !GC_NO_THREADS_DISCOVERY]
(GC_lookup_pthread): Inverse THREAD_EQUAL() condition in for statement.
2022-09-02 Ivan Maidanski <ivmai@mail.ru>
* include/private/gcconfig.h [(mips || __mips || _mips) && !__TANDEM
&& !LINUX && !EWS4800 && !NETBSD && !OPENBSD] (IRIX5): Do
not define if _WIN32_WCE or __CEGCC__ or __MINGW32CE__.
2022-09-02 Ivan Maidanski <ivmai@mail.ru>
* include/private/gcconfig.h [mips || __mips || _mips] (MIPS): Do not
redefine if __TANDEM.
* include/private/gcconfig.h [(mips || __mips || _mips) && !LINUX
&& !EWS4800 && !NETBSD && !OPENBSD] (IRIX5): Do not define if __TANDEM.
[7.2p]
2022-08-25 Ivan Maidanski <ivmai@mail.ru>
* doc/README: Bump version to 7.2p (rev. P).
* Makefile.am (libgc_la_LDFLAGS): Bump version-info to 2:5:1.
* Makefile.in: Regenerate.
2022-08-03 Ivan Maidanski <ivmai@mail.ru>
* doc/tree.html (A picture): Change type of hb_obj_kind (of hblkhdr)
from ushort to uchar; add hb_flags field right after hb_obj_kind.
2022-07-06 Ivan Maidanski <ivmai@mail.ru>
* include/private/gcconfig.h [MPROTECT_VDB && (__GLIBC__<2
|| __GLIBC__==2 && __GLIBC_MINOR__<2)]: Move error directive from
os_dep.c.
* include/private/gcconfig.h [FREEBSD && __GLIBC__] (SUNOS5SIGS):
Define.
* os_dep.c [MPROTECT_VDB && !DARWIN && FREEBSD] (GC_dirty_init): Do not
check __GLIBC__.
2022-07-05 Ivan Maidanski <ivmai@mail.ru>
* doc/README.macros (SUNOS5SIGS): Update documentation (mention
FreeBSD to match that in gcconfig.h).
2022-06-14 Ivan Maidanski <ivmai@mail.ru>
* typd_mlc.c (GC_make_array_descriptor): Add comment that no overflow
guaranteed by caller.
* typd_mlc.c (GC_malloc_explicitly_typed,
GC_malloc_explicitly_typed_ignore_off_page): If lb is zero, then assume
lb is 1 (byte).
* typd_mlc.c (GC_calloc_explicitly_typed): If lb or n is zero, then
assume that lb*n is 1; check that lb*n does not overflow before
GC_make_array_descriptor() call.
2022-06-08 Ivan Maidanski <ivmai@mail.ru>
* typd_mlc.c (set_obj_descr): Define macro (using AO_store_release
if available).
* typd_mlc.c (GC_malloc_explicitly_typed,
GC_malloc_explicitly_typed_ignore_off_page): Use set_complex_descr()
instead of direct write to *op.
* typd_mlc.c (GC_calloc_explicitly_typed): Remove volatile for lp
local variable; add comment; wrap writing to op[lw-1] into LOCK/UNLOCK.
2022-06-07 Ivan Maidanski <ivmai@mail.ru>
* typd_mlc.c (GC_malloc_explicitly_typed): Fix typo (remove duplicate
"the") in comment.
2022-06-07 Ivan Maidanski <ivmai@mail.ru>
* typd_mlc.c (GC_make_array_descriptor): If *complex_d (set to the
result of GC_make_sequence_descriptor()) is null then return NO_MEM.
2022-06-06 Ivan Maidanski <ivmai@mail.ru>
* typd_mlc.c (GC_make_descriptor): Cast len variable to signed_word.
2022-05-30 Ivan Maidanski <ivmai@mail.ru>
* win32_threads.c [!GC_NO_THREADS_DISCOVERY && !GC_PTHREADS]
(GC_DllMain): Remove assertion that parallel_initialized is set (i.e.
for the case when GC_win32_dll_threads is set).
2022-05-25 Ivan Maidanski <ivmai@mail.ru>
* pthread_support.c (GC_allow_register_threads): Call INIT_REAL_SYMS().
2022-05-25 Ivan Maidanski <ivmai@mail.ru>
* pthread_support.c [GC_ASSERTIONS] (GC_allow_register_threads): Wrap
GC_lookup_thread() call into LOCK/UNLOCK.
* win32_threads.c [GC_ASSERTIONS] (GC_allow_register_threads): Wrap
GC_lookup_thread_inner() call into LOCK/UNLOCK.
2022-04-27 Ivan Maidanski <ivmai@mail.ru>
* alloc.c (GC_need_full_gc): Fix typo in comment ("due to").
2022-04-19 Ivan Maidanski <ivmai@mail.ru>
* cord/cordprnt.c (NONE): Fix a typo in comment ("non-numeric").
2022-02-25 Ivan Maidanski <ivmai@mail.ru>
* allchblk.c [USE_MUNMAP] (GC_unmap_old): Remove duplicate "way" in
comment.
2022-02-02 Ivan Maidanski <ivmai@mail.ru>
* os_dep.c [NEED_PROC_MAPS] (GC_get_maps): Do not return 0 from the
function if GC_repeat_read returns 0 unless maps_size is 0.
2022-01-16 Ivan Maidanski <ivmai@mail.ru>
* dbg_mlc.c [KEEP_BACK_PTRS] (GC_generate_random_backtrace_no_gc):
Wrap GC_generate_random_valid_address() call into LOCK/UNLOCK.
* finalize.c [KEEP_BACK_PTRS] (GC_notify_or_invoke_finalizers):
Declare current local variable; expand
GC_generate_random_backtrace_no_gc() manually.
* finalize.c [KEEP_BACK_PTRS] (GC_notify_or_invoke_finalizers):
UNLOCK after GC_generate_random_valid_address() call.
* include/private/gc_priv.h [KEEP_BACK_PTRS]
(GC_generate_random_backtrace_no_gc): Remove declaration.
2022-01-03 Dimitris Apostolou <dimitris.apostolou@icloud.com>
* allchblk.c (GC_merge_unmapped): Fix a typo in comment ("mergeable").
* include/gc.h (GC_set_stop_func): Fix a typo in comment
("triggered").
* ChangeLog: Likewise.
* ChangeLog: Fix a typo in comment ("unmergeable").
2021-12-26 Ivan Maidanski <ivmai@mail.ru>
* dbg_mlc.c [!GC_NO_FINALIZATION] (GC_debug_register_finalizer_no_order,
GC_debug_register_finalizer, GC_debug_register_finalizer_unreachable,
GC_debug_register_finalizer_ignore_self): Initialize my_old_cd to 0;
add comment.
* include/gc_cpp.h (gc_cleanup::gc_cleanup): Initialize oldProc and
oldData to 0; add comment.
2021-12-26 Ivan Maidanski <ivmai@mail.ru>
* finalize.c (GC_register_finalizer_inner): Document the case when
GC_find_leak is true; fix a typo ("remain") in comment.
2021-12-25 Ivan Maidanski <ivmai@mail.ru>
* win32_threads.c [!GC_PTHREADS && !GC_NO_THREADS_DISCOVERY]
(GC_DllMain): Do not assert parallel_initialized unless
GC_win32_dll_threads on DLL_THREAD_DETACH.
2021-11-27 Ivan Maidanski <ivmai@mail.ru>
* Makefile.am [NEED_ATOMIC_OPS_ASM] (nodist_libgc_la_SOURCES): Append
atomic_ops_sysdeps.S instead of overwriting atomic_ops.c item (and
only if USE_INTERNAL_LIBATOMIC_OPS).
2021-11-25 Ivan Maidanski <ivmai@mail.ru>
* doc/debugging.html (Unexpectedly Large Heap): Fix typo
"primitives in", add missing space after it.
2021-11-13 Ivan Maidanski <ivmai@mail.ru>
* include/include.am (dist_noinst_HEADERS): Remove msvc_dbg.h entry.
2021-11-03 Ivan Maidanski <ivmai@mail.ru>
* Makefile.am (EXTRA_DIST): Remove outdated comment exclusion of
"Makefile" file.
* README.QUICK (WARNINGS): Mention "Makefile.am or Makefile.direct"
instead of "Makefile".
* doc/README.linux: Mention "Makefile.direct" instead of "Makefile".
* doc/README.sgi: Likewise.
2021-11-01 Ivan Maidanski <ivmai@mail.ru>
* doc/README.changes: Fix typo in name (David Mosberger).
2021-10-13 Ivan Maidanski <ivmai@mail.ru>
* tests/test.c [!DBG_HDRS_ALL && (IA64 || POWERPC)] (run_one_test):
Do not test M68K macro; move TEST_FAIL_COUNT(1) inside ifdef.
2021-10-13 Ivan Maidanski <ivmai@mail.ru>
* tests/test.c [!DBG_HDRS_ALL && !ALL_INTERIOR_POINTERS]
(run_one_test): Do not test for RS6000.
* Makefile.dj (cord/de): Likewise.
2021-10-13 Ivan Maidanski <ivmai@mail.ru>
* include/private/gc_priv.h (GC_push_one): Remove comment belonging to
deleted GC_push_proc ("Push register contents onto mark stack").
[7.2o]
2021-09-28 Ivan Maidanski <ivmai@mail.ru>
* doc/README: Bump version to 7.2o (rev. O).
2021-09-21 Ivan Maidanski <ivmai@mail.ru>
* headers.c (GC_scratch_alloc): Add bytes to scratch_free_ptr only
if no overflow (and not beyond GC_scratch_end_ptr); add assertion that
GC_scratch_end_ptr is not less than scratch_free_ptr.
2021-09-19 Ivan Maidanski <ivmai@mail.ru>
* dyn_load.c [HAVE_DL_ITERATE_PHDR && PT_GNU_RELRO]
(GC_register_dynlib_callback): Round load_segs[j].end up to nearest
page boundary in the assertion; add comment.
2021-09-16 Ivan Maidanski <ivmai@mail.ru>
* mark.c (alloc_mark_stack): Set size (which is passed to
GC_add_to_heap) to 0 if GC_mark_stack_size*sizeof(GC_ms_entry) is
less than displ.
2021-09-16 Ivan Maidanski <ivmai@mail.ru>
* pcr_interface.c (GC_quiet): Declare as extern variable.
2021-09-11 Ivan Maidanski <ivmai@mail.ru>
* headers.c (GC_scratch_alloc): Update GC_scratch_last_end_ptr even if
the first GET_MEM() call fails because of out of memory.
2021-09-01 Ivan Maidanski <ivmai@mail.ru>
* include/private/gc_priv.h [!GC_DISABLE_INCREMENTAL
&& CAN_HANDLE_FORK] (GC_dirty_update_child): Declare (as a function
or as a macro).
* os_dep.c [PROC_VDB && !THREADS] (saved_proc_pid): New static
variable.
* os_dep.c [PROC_VDB] (GC_proc_fd): Initialize to -1 (instead of 0).
* os_dep.c [PROC_VDB] (proc_dirty_open_files): New static function
(part of code is moved from GC_dirty_init).
* os_dep.c [PROC_VDB && !THREADS] (proc_dirty_open_files): Store
pid to saved_proc_pid when true is returned.
* os_dep.c [PROC_VDB && CAN_HANDLE_FORK] (GC_dirty_update_child): New
GC_INNER function.
* os_dep.c [PROC_VDB] (GC_dirty_init): Call proc_dirty_open_files().
* os_dep.c [PROC_VDB && !THREADS] (GC_proc_read_dirty): Call
proc_dirty_open_files() if current pid differs from saved_proc_pid.
* pthread_support.c [CAN_HANDLE_FORK && !GC_DISABLE_INCREMENTAL]
(fork_child_proc): Call GC_dirty_update_child().
2021-08-25 Ivan Maidanski <ivmai@mail.ru>
* os_dep.c [PROC_VDB] (GC_page_was_dirty, GC_page_was_ever_dirty): Do
not check result of HDR(h); add comment.
2021-07-29 Ivan Maidanski <ivmai@mail.ru>
* mallocx.c (GC_generic_malloc_many): Do not increment rlh by lg (use
rlh[lg] instead); reload rlh value after
acquiring the GC lock (at the end of the loop).
2021-07-24 Ivan Maidanski <ivmai@mail.ru>
* include/new_gc_alloc.h: Include gc_mark.h (to declare
GC_generic_malloc).
2021-06-20 Ivan Maidanski <ivmai@mail.ru>
* configure.host [!GCC && $host=hppa*-*-hpux*] (gc_cflags): Change
$gc_flags to $gc_cflags.
2020-11-28 Tim Gates <tim.gates@iress.com>
* extra/msvc_dbg.c [!_M_X64 && _MSC_VER]: Fix a typo ("machine") in
comment.
2020-10-16 Mahder Gebremedhin <mahder.gebremedhin@liu.se>
* CMakeLists.txt [CMAKE_USE_PTHREADS_INIT] (SRC): Add gc_dlopen.c file.
2020-08-25 Ivan Maidanski <ivmai@mail.ru>
* include/private/gc_priv.h (GC_ATTR_WORD_ALIGNED): New macro.
* include/private/pthread_support.h [THREAD_LOCAL_ALLOC]
(GC_Thread_Rep.tlfs): Specify GC_ATTR_WORD_ALIGNED.
2020-07-28 Jonathan Chambers <joncham@gmail.com>
* darwin_stop_world.c (GC_stack_range_for): Retry
thread_get_state(GC_MACH_THREAD_STATE) while KERN_ABORTED.
2013-07-31 Ondrej Bilka <neleai@seznam.cz>
* darwin_stop_world.c (GC_use_threads_discovery): Fix a typo in
comment ("stopped").
* doc/porting.html: Fix typos in comment ("defining", "support").
* include/private/gc_priv.h (GC_have_errors): Fix a typo in comment
("OK").
* os_dep.c (GC_win32_free_heap): Likewise.
* pthread_support.c (GC_remove_all_threads_but_me): Likewise.
* win32_threads.c (GC_remove_all_threads_but_me): Likewise.
* doc/README.Mac: Likewise.
* include/private/gcconfig.h: Fix a typo in comment ("SPARC").
* ChangeLog: Likewise.
* os_dep.c (GC_linux_main_stack_base): Likewise.
* include/private/gcconfig.h: Fix a typo in comment ("release").
* mallocx.c (GC_generic_malloc_many): Fix a typo in comment
("reacquiring").
* pthread_support.c: Fix a typo in comment ("which").
2019-10-29 Ivan Maidanski <ivmai@mail.ru>
* misc.c [!(MSWIN32 || MSWINCE) && !OS2 && !MACOS
&& !ECOS && !NOSYS]: Include errno.h.
* misc.c [!(MSWIN32 || MSWINCE) && !OS2 && !MACOS
&& !ECOS && !NOSYS] (GC_write): Retry write()
if result is -1 and errno is EAGAIN.
2019-10-11 Dima Pasechnik <dimpase@gmail.com>
* doc/gcinterface.html (Class inheritance-based interface): Fix a typo
("traceable but uncollectible memory").
2019-10-04 Ivan Maidanski <ivmai@mail.ru>
* win32_threads.c [!MSWINCE && MPROTECT_VDB] (GC_suspend): Move
AO_test_and_set_acquire() call to be before GetExitCodeThread();
call AO_CLEAR() immediately if GetExitCodeThread() failed.
2019-10-04 Ivan Maidanski <ivmai@mail.ru>
* new_hblk.c: Specify the 2nd argument (kind) of GC_new_hblk in the
head comment.
2019-10-03 Ivan Maidanski <ivmai@mail.ru>
* mark.c [WRAP_MARK_SOME && (MSWIN32 || MSWINCE) && GC_WIN32_THREADS
&& !__GNUC__] (GC_mark_some): If GC_started_thread_while_stopped()
then goto handle_thr_start instead of handle_ex; define
handle_thr_start label right after WARN() call.
2019-08-30 Ivan Maidanski <ivmai@mail.ru>
* include/private/gcconfig.h [USE_PROC_FOR_LIBRARIES
&& GC_LINUX_THREADS] (MPROTECT_VDB): Undefine; add comment.
2019-08-30 Ivan Maidanski <ivmai@mail.ru>
* mark.c [WRAP_MARK_SOME && !MSWIN32 && !MSWINCE] (GC_mark_some):
Do not WARN about incompatibility of incremental GC with /proc roots
if DEFAULT_VDB or MANUAL_VDB.
2019-08-29 Ivan Maidanski <ivmai@mail.ru>
* misc.c [USE_PROC_FOR_LIBRARIES && GC_LINUX_THREADS] (GC_init): Fix
typo in comment ("will").
2019-07-01 Sorawee Porncharoenwase <sorawee.pwase@gmail.com>
* doc/README.changes (6.0alpha7, 6.2alpha4): Fix typo ("primitives").
2019-07-17 Ivan Maidanski <ivmai@mail.ru>
* cord/tests/de_win.c (control_chars): Replace "32" to "64" in comment.
2019-07-16 Ivan Maidanski <ivmai@mail.ru>
* doc/README.amiga (WHATS NEW): Change SMakefile.smk to SMakefile.amiga.
2019-06-29 Ivan Maidanski <ivmai@mail.ru>
* gc_cpp.cc [!_MSC_VER && __cplusplus>201103L] (operator delete):
Remove undefined GC_DECL_DELETE_THROW attribute.
* gc_cpp.cc [!_MSC_VER && __cplusplus>201103L && GC_OPERATOR_NEW_ARRAY
&& !CPPCHECK] (operator delete[]): Likewise.
2019-06-21 Ivan Maidanski <ivmai@mail.ru>
* include/private/gcconfig.h [(M68K || I386 || ALPHA || IA64
|| X86_64 || HEXAGON) && LINUX] (MPROTECT_VDB): Do not define
if REDIRECT_MALLOC.
2019-04-29 Ivan Maidanski <ivmai@mail.ru>
* win32_threads.c [GC_ASSERTIONS] (GC_thr_init): Remove sb_result local
variable.
* win32_threads.c (GC_thr_init): Initalize sb mem_base and reg_base
fields with GC_stackbottom and GC_register_stackbottom, respectively;
do not call GC_get_stack_base().
2019-04-26 Ivan Maidanski <ivmai@mail.ru>
* doc/README (The C Interface to the Allocator): Fix a typo
("GC_stackbottom").
2019-04-25 Ivan Maidanski <ivmai@mail.ru>
* mark.c [TRACE_BUF] (GC_trace_buf): Initialize to all zeros.
2019-04-23 Ivan Maidanski <ivmai@mail.ru>
* os_dep.c [SAVE_CALL_CHAIN && (NARGS!=0 || NFRAMES%2!=0
|| !GC_HAVE_BUILTIN_BACKTRACE) && THREADS] (GC_save_callers): Do not
compare fp to GC_stackbottom.
* os_dep.c [SAVE_CALL_CHAIN && (NARGS!=0 || NFRAMES%2!=0
|| !GC_HAVE_BUILTIN_BACKTRACE) && THREADS && STACK_GROWS_UP]
(GC_save_callers): Break the loop if fp is NULL.
2015-06-27 Jasper Lievisse Adriaanse <jasper@openbsd.org>
* include/private/gcconfig.h [MIPS && OPENBSD] (CPP_WORDSZ): Define
macro; add comment.
* include/private/gcconfig.h [MIPS && OPENBSD] (ALIGNMENT): Define to 8
(instead of 4).
* include/private/gcconfig.h [MIPS && OPENBSD] (__data_start): Declare
extern variable (instead of _fdata).
* include/private/gcconfig.h [MIPS && OPENBSD] (DATASTART): Use
__data_start.
* include/private/gcconfig.h [MIPS && OPENBSD] (_end): Change the type
to int[].
2014-02-09 Alexandr Shadchin <shadchin@openbsd.org>
* include/gc_config_macros.h [GC_THREADS && __OpenBSD__]
(GC_OPENBSD_THREADS): Define macro regardless of __sparc one.
2019-04-05 Ivan Maidanski <ivmai@mail.ru>
* doc/gcdescr.html (Introduction): Fix typos ("non-incremental",
"this operation").
* mark.c (GC_collection_in_progress): Fix a typo in comment
("non-incremental").
2019-04-03 Ivan Maidanski <ivmai@mail.ru>
* include/gc.h [GC_THREADS] (GC_parallel): Fix a typo in comment
("GC_NPROCS").
2019-04-03 Ivan Maidanski <ivmai@mail.ru>
* include/gc.h: Remove a comment about Solaris.
2019-03-26 Ivan Maidanski <ivmai@mail.ru>
* doc/simple_example.html (Writing the program): Adjust printf format
specifier to match the argument type (cast the argument as well).
2019-03-24 Ivan Maidanski <ivmai@mail.ru>
* configure.ac [$host=*aix*]: Update comment and AC_MSG_CHECKING
message to match the checked condition.
2019-03-22 Ivan Maidanski <ivmai@mail.ru>
* OS2_MAKEFILE: Fix a typo in comment ("it is there").
* doc/README: Fix typos ("is not", "gc_inline.h", "bytes from",
"processed").
* doc/README.OS2: Fix typos ("how", "linking").
* doc/README.amiga: Fix typos ("GC", "e.g.", "GC_*_typed", "i.e.",
"SMakefile.amiga", "communications").
* doc/README.cmake: Fix a typo ("go to").
* doc/README.ews4800: Fix a typo ("a unique").
* doc/README.solaris2: Fix a typo ("toolchain").
* doc/gcdescr.html: Fix typos ("then advances", "is not",
"treated by").
* doc/gcinterface.html: Fix typos ("Build it", "Allocates",
"deallocates", "forces", "Causes", "Replaces", "Registers",
"traceable_alloc", "single_client_traceable_alloc").
* doc/leak.html: Fix typos ("there is").
* doc/porting.html: Add missing ")" symbol; add missing comma; fix
typos ("collector's", "are needed", "GC_save_callers").
* include/private/gc_priv.h: Fix a typo in comment ("gc_inline.h").
* os_dep.c [GWW_VDB] (detect_GetWriteWatch, GC_gww_read_dirty): Fix
abbreviation ("Win2K") in a comment.
* os_dep.c [MSWIN32] (GC_wnt): Likewise.
* os_dep.c [GWW_VDB] (GC_gww_read_dirty): Fix a typo in comment
("behavior").
[7.2n]
2019-03-01 Ivan Maidanski <ivmai@mail.ru>
* doc/README: Bump version to 7.2n (rev. N).
2019-02-08 Hamayama <hamay1010@gmail.com>
* win32_threads.c [I386] (isWow64): New static variable.
* win32_threads.c [I386] (GC_push_stack_for): If isWow64 then set also
CONTEXT_EXCEPTION_REQUEST and CONTEXT_SEGMENTS bits in ContextFlags;
if isWow64, and CONTEXT_EXCEPTION_REPORTING and
CONTEXT_EXCEPTION_ACTIVE are set on return from GetThreadContext then
call GetThreadSelectorEntry and use StackLimit of FS selector to set
sp local variable (instead of context.Esp); add comment.
* win32_threads.c [I386 && DEBUG_THREADS] (GC_push_stack_for): Call
GC_log_printf() to report TIB stack limit/base and the case when
CONTEXT_EXCEPTION_REQUEST is not supported.
* win32_threads.c [I386] (GC_thr_init): Set isWow64 by IsWow64Process()
if the later is available.
2019-01-22 Ivan Maidanski <ivmai@mail.ru>
* mark.c [!(THREADS && MPROTECT_VDB)]
(GC_push_all_stack): Call GC_push_all_eager() instead of GC_push_all()
if GC_mark_stack_top is rather close to GC_mark_stack_limit.
2019-01-04 Ivan Maidanski <ivmai@mail.ru>
* include/private/gc_priv.h [BSD_TIME] (MS_TIME_DIFF):
Cast the result of a.tv_usec-b.tv_usec to long (so that the result of
the division should be negative if a.tv_usec is less than b.tv_usec).
2019-01-05 Ivan Maidanski <ivmai@mail.ru>
* alloc.c [!SMALL_CONFIG] (GC_start_time): Initialize to
CLOCK_TYPE_INITIALIZER (instead of 0).
* alloc.c [!SMALL_CONFIG] (GC_try_to_collect_inner, GC_stopped_mark,
GC_finish_collection): Initialize local variable of CLOCK_TYPE type to
CLOCK_TYPE_INITIALIZER (instead of 0); remove comment (duplicating that
in gc_priv.h).
* reclaim.c [!SMALL_CONFIG] (GC_reclaim_all): Likewise.
* include/private/gc_priv.h (CLOCK_TYPE_INITIALIZER):
Define macro.
2018-12-21 Ivan Maidanski <ivmai@mail.ru>
* os_dep.c [USE_MUNMAP && !MSWIN32 && !MSWINCE && NETBSD] (GC_remap):
Call mmap() instead of mprotect().
2018-12-20 Ivan Maidanski <ivmai@mail.ru>
* os_dep.c [!OS2 && !PCR && !AMIGA && !MSWIN32 && !MSWINCE && !MACOS
&& !DOS4GW && !NONSTOP && !SN_TARGET_PSP2 && !RTEMS && !__CC_ARM
&& MMAP_SUPPORTED] (GC_unix_get_mem): Do not call GC_unix_sbrk_get_mem
if GC_pages_executable; add comment.
[7.2m]
2018-12-11 Ivan Maidanski <ivmai@mail.ru>
* doc/README: Bump version to 7.2m (rev. M).
2018-11-12 Ivan Maidanski <ivmai@mail.ru>
* cord/cordbscs.c (CORD__pos_fetch, CORD__next): Call ABORT() if
CORD_pos_valid() returns false for the argument (do not compute pe
in this case).
2018-11-04 Ivan Maidanski <ivmai@mail.ru>
* headers.c (GC_install_counts): If hbp+=BOTTOM_SZ overflow is expected
then break the first loop; add comment.
2018-09-13 Ivan Maidanski <ivmai@mail.ru>
* CMakeLists.txt (CMAKE_USE_PTHREADS_INIT): Fix typo
("lib and includes") in comment.
2018-09-03 Max Mouratov <mmouratov@gmail.com>
* doc/README.changes (5.0alpha6): Fix typo ("DATASTART").
* include/private/gcconfig.h: Likewise.
* backgraph.c: Fix typo in comment ("If").
* cord/de.c: Fix typo in comment ("Unbounded").
2018-08-28 Demyan Kimitsa <demyan.kimitsa@gmail.com>
* darwin_stop_world.c (struct GC_mach_thread): Rename already_suspended
field to suspended.
* darwin_stop_world.c [!GC_NO_THREADS_DISCOVERY]
(GC_suspend_thread_list): Add my_task argument; remove info an outCount
local variables; call mach_port_deallocate unless threaded is added to
GC_mach_threads; do not call thread_info; update the relevant comments.
* darwin_stop_world.c [!GC_NO_THREADS_DISCOVERY] (GC_stop_world):
Remove i local variable; do not call mach_port_deallocate for prevlist
items; add comment.
* darwin_stop_world.c (GC_thread_resume): Call WARN instead of ABORT
if thread_resume failed.
* darwin_stop_world.c [!GC_NO_THREADS_DISCOVERY] (GC_start_world):
Initialize j to listcount; iterate over GC_mach_threads in the outer
loop; if thread is suspended then find it in act_list; if found then
resume thread; call mach_port_deallocate for act_list items.
[7.2l]
2018-08-10 Ivan Maidanski <ivmai@mail.ru>
* doc/README: Bump version to 7.2l (rev. L).
* Makefile.am (libgc_la_LDFLAGS): Bump version-info to 2:4:1.
* Makefile.am (libgccpp_la_LDFLAGS): Bump version-info to 1:5:0.
* Makefile.in: Regenerate.
2018-08-03 Ivan Maidanski <ivmai@mail.ru>
* mark_rts.c [USE_PROC_FOR_LIBRARIES] (swap_static_roots): New inline
function.
* mark_rts.c [USE_PROC_FOR_LIBRARIES] (GC_remove_roots_subregion):
Use swap_static_roots (after GC_add_roots_inner); if there is
a temporary root after GC_remove_root_at_pos then swap it with the
appropriate non-temporary one to ensure all temporary roots are
grouped at the end.
2018-07-27 Ivan Maidanski <ivmai@mail.ru>
* darwin_stop_world.c [!GC_NO_THREADS_DISCOVERY]
(GC_suspend_thread_list): Retry thread_suspend if failed with
KERN_ABORTED.
2018-07-24 Jonathan Chambers <joncham@gmail.com>
* darwin_stop_world.c (GC_stop_world): Retry thread_suspend() on
KERN_ABORTED.
2018-07-20 Ivan Maidanski <ivmai@mail.ru>
* configure: Regenerate.
* Makefile.in: Likewise.
2018-07-11 Ivan Maidanski <ivmai@mail.ru>
* ptr_chck.c (GC_is_valid_displacement): Remove redundant
IS_FORWARDING_ADDR_OR_NIL(hhdr) call if GC_all_interior_pointers.
* ptr_chck.c (GC_is_valid_displacement): Do not goto fail if
p+sz-offset > h+1 but IS_FORWARDING_ADDR_OR_NIL(HDR(h+1)).
* ptr_chck.c (GC_is_visible): Transform comment about GC_base to
a TODO item; set hhdr to HDR(base) instead of HDR(p)
if HBLKPTR(base)!=HBLKPTR(p).
2018-06-15 Ivan Maidanski <ivmai@mail.ru>
* include/private/gc_pmark.h [MARK_BIT_PER_OBJ] (PUSH_CONTENTS_HDR):
Do not call LONG_MULT() if inv_sz == LARGE_INV_SZ; set base to
hhdr->hb_block if inv_sz == LARGE_INV_SZ regardless of low_prod>>16
value; use EXPECT(FALSE) for inv_sz == LARGE_INV_SZ expression;
remove FIXME about offset; adjust assertion to allow hb_block==current.
2018-01-15 Ivan Maidanski <ivmai@mail.ru>
* gc_cpp.cc [!_MSC_VER && __cplusplus>201103L] (operator delete):
Define sized variant (the size argument is ignored for now).
* gc_cpp.cc [!_MSC_VER && __cplusplus>201103L && GC_OPERATOR_NEW_ARRAY
&& !CPPCHECK] (operator delete[]): Likewise.
2018-07-12 Ivan Maidanski <ivmai@mail.ru>
* doc/README.win32: Rename "Borland 4.5" to "Borland C++ Builder".
* doc/README.win32 (Borland Tools): Change version from 4.5 to 5.5.
2018-07-11 Ivan Maidanski <ivmai@mail.ru>
* os_dep.c [NEED_CALLINFO && LINUX && !SMALL_CONFIG]
(GC_print_callers): If nl is null then pass result_len (instead of
nl-result_buf) to strncmp; adjust code indentation.
2018-05-08 Ivan Maidanski <ivmai@mail.ru>
* include/gc_inline.h (GC_CONS): Store second element only if result
is non-null; store first element along with second one.
2018-06-23 Ivan Maidanski <ivmai@mail.ru>
* mark.c (GC_push_selected): In case of a danger of mark stack overflow
after the first GC_push_all() call then call GC_push_all(bottom, top)
and return; remove redundant checking of GC_mark_stack_top at the end
of the function (overflow is already checked in GC_push_all).
2018-06-20 Ivan Maidanski <ivmai@mail.ru>
* os_dep.c [!REDIRECT_MALLOC && USE_WINALLOC]
(GC_add_current_malloc_heap): Do not call GC_get_allocation_base(new_l)
if new_l is null; cast malloc() result to the type of new_l.
2018-06-14 Ivan Maidanski <ivmai@mail.ru>
* allchblk.c [MARK_BIT_PER_OBJ] (setup_header): Fix comment
(sz*inv_sz>=2**32).
* allchblk.c [MARK_BIT_PER_OBJ && INV_SZ_COMPUTATION_CHECK]
(setup_header): Add assertion to check the computation of inv_sz.
2018-06-14 Ivan Maidanski <ivmai@mail.ru>
* reclaim.c [!USE_MARK_BYTES] (GC_n_set_marks): Do not decrement the
result variable on return; add comment.
2018-05-18 Ivan Maidanski <ivmai@mail.ru>
* Makefile.am (EXTRA_DIST,
include doc/doc.am): Change comment style from "#" to "##".
* Makefile.am (CPLUSPLUS): Move "#" inside the conditional block.
* configure.ac: Update the copyright.
* configure.ac: Change comment style from "#" to "dnl" for the comments
that are meaningless in auto-generated configure file.
2018-05-07 Ivan Maidanski <ivmai@mail.ru>
* dyn_load.c [USE_PROC_FOR_LIBRARIES] (GC_register_map_entries): Call
GC_remove_roots_subregion for each region which has prot starting
with "---"; add comment.
* include/private/gc_priv.h [USE_PROC_FOR_LIBRARIES]
(GC_remove_roots_subregion): Declare function.
* mark_rts.c [USE_PROC_FOR_LIBRARIES] (GC_remove_roots_subregion):
Implement (including partial overlapping).
2018-06-15 Ivan Maidanski <ivmai@mail.ru>
* ChangeLog: Fix typos ("sections",
"variable", "determining", "config", "initialize").
* doc/README.changes: Fix typos ("getting", "pointerful", "configure").
2018-06-01 Ivan Maidanski <ivmai@mail.ru>
* include/gc_allocator.h (GC_selective_alloc<GC_true_type>): Do not
define if __WATCOMC__; add comment.
2018-05-31 Ivan Maidanski <ivmai@mail.ru>
* include/private/gcconfig.h [!_WIN32_WCE && !__CEGCC__
&& !__MINGW32CE__] (MSWIN32): Do not define if already
defined.
2018-05-23 Ivan Maidanski <ivmai@mail.ru>
* include/ec.h (CORD_ec_flush_buf): Fix a typo ("cord") in comment.
2018-05-15 Ivan Maidanski <ivmai@mail.ru>
* doc/gcinterface.html: Change GC_set_warn_proc return type from
GC_warn_proc to void.
2018-05-02 Naoyuki Sawa <sawa_naoyuki-1@yahoo.co.jp>
* dyn_load.c [MSWIN32 || MSWINCE || CYGWIN32]
(GC_register_dynamic_libraries): Call GC_cond_add_roots()
also for PAGE_EXECUTE_WRITECOPY and PAGE_WRITECOPY pages.
2018-04-25 Ivan Maidanski <ivmai@mail.ru>
* doc/doc.am (dist_doc_DATA): Remove doc/gc.man.
* doc/doc.am (dist_man3_MANS): Set to doc/gc.man.
* doc/gc.man (.TH): Rename GC_MALLOC to BDWGC.
[7.2k]
2018-04-19 Ivan Maidanski <ivmai@mail.ru>
* doc/README: Bump version to 7.2k (rev. K).
* Makefile.am (libgc_la_LDFLAGS): Bump version-info to 2:3:1.
* Makefile.in: Regenerate.
2018-04-18 Ivan Maidanski <ivmai@mail.ru>
* dbg_mlc.c (GC_store_debug_info_inner): Remove comment (as it exists
in the header); change from STATIC to GC_INNER; change p type from
ptr_t to void*.
* dbg_mlc.c [GC_ASSERTIONS] (GC_store_debug_info_inner): Cast p to
ptr_t when passed to CROSSES_HBLK().
* dbg_mlc.c (GC_store_debug_info): Change from GC_INNER to static;
remove GC_ prefix; replace ptr_t to void*; add fn argument;
replace "const char *string, int linenum" with GC_EXTRA_PARAMS;
change "word sz" argument to "size_t lb"; allow p to be null (print
error message in this case); call GC_start_debugging_inner unless
GC_debugging_started; call ADD_CALL_CHAIN.
* dbg_mlc.c (GC_start_debugging_inner): Define as GC_INNER (instead of
STATIC); call GC_register_displacement_inner() instead of
GC_register_displacement().
* dbg_mlc.c (GC_start_debugging): Remove.
* dbg_mlc.c (GC_debug_malloc, GC_debug_malloc_ignore_off_page,
GC_debug_malloc_atomic_ignore_off_page, GC_debug_generic_malloc,
GC_debug_malloc_atomic, GC_debug_malloc_uncollectable): Call
store_debug_info() instead of checking result for null and calling
GC_start_debugging, ADD_CALL_CHAIN, GC_store_debug_info; use OPT_RA.
* dbg_mlc.c [STUBBORN_ALLOC] (GC_debug_malloc_stubborn): Likewise.
* dbg_mlc.c [GC_ATOMIC_UNCOLLECTABLE]
(GC_debug_malloc_atomic_uncollectable): Likewise.
* gcj_mlc.c [GC_GCJ_SUPPORT] (GC_debug_gcj_malloc): Call ADD_CALL_CHAIN
while holding the lock; call GC_store_debug_info_inner (holding the
lock) instead of GC_store_debug_info.
* gcj_mlc.c (GC_debug_gcj_malloc): Call GC_start_debugging_inner
(holding the lock) instead of GC_start_debugging.
* include/private/dbg_mlc.h (ADD_CALL_CHAIN): Update comment.
* include/private/gc_priv.h (GC_store_debug_info): Replace with
GC_store_debug_info_inner; update comment; change ptr_t to void*.
* include/private/gc_priv.h (GC_start_debugging): Rename to
GC_start_debugging_inner; improve usage comment.
* os_dep.c [SAVE_CALL_CHAIN] (GC_save_callers): Add assertion that the
allocation lock is held; add comment.
2018-04-10 Ivan Maidanski <ivmai@mail.ru>
* backgraph.c [MAKE_BACK_GRAPH] (GC_print_back_graph_stats): Add
assertion that the allocation lock is held; store GC_deepest_obj to
obj local variable (while holding the lock); place UNLOCK/LOCK around
GC_print_heap_obj() call; pass obj to GC_print_heap_obj(); replace
GC_printf() to GC_err_printf() call to print the header for
GC_print_heap_obj().
* finalize.c [MAKE_BACK_GRAPH] (GC_notify_or_invoke_finalizers): Remove