bdwgc-sys 0.1.0

Boehm-Demers-Weiser garbage collector bindings for Rust
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
/* automatically generated by rust-bindgen 0.59.2 */

pub const GC_TMP_VERSION_MAJOR: u32 = 8;
pub const GC_TMP_VERSION_MINOR: u32 = 3;
pub const GC_TMP_VERSION_MICRO: u32 = 0;
pub const GC_VERSION_MAJOR: u32 = 8;
pub const GC_VERSION_MINOR: u32 = 3;
pub const GC_VERSION_MICRO: u32 = 0;
pub const GC_TIME_UNLIMITED: u32 = 999999;
pub const GC_PROTECTS_POINTER_HEAP: u32 = 1;
pub const GC_PROTECTS_PTRFREE_HEAP: u32 = 2;
pub const GC_PROTECTS_STATIC_DATA: u32 = 4;
pub const GC_PROTECTS_STACK: u32 = 8;
pub const GC_PROTECTS_NONE: u32 = 0;
pub const GC_NO_MEMORY: u32 = 2;
pub const GC_SUCCESS: u32 = 0;
pub const GC_DUPLICATE: u32 = 1;
pub const GC_NO_THREADS: u32 = 2;
pub const GC_UNIMPLEMENTED: u32 = 3;
pub const GC_NOT_FOUND: u32 = 4;
pub type size_t = ::std::os::raw::c_ulonglong;
pub type wchar_t = ::std::os::raw::c_ushort;
pub type max_align_t = f64;
pub type GC_PTR = *mut ::std::os::raw::c_void;
pub type GC_word = ::std::os::raw::c_ulonglong;
pub type GC_signed_word = ::std::os::raw::c_longlong;
extern "C" {
    pub fn GC_get_version() -> ::std::os::raw::c_uint;
}
extern "C" {
    pub static mut GC_gc_no: GC_word;
}
extern "C" {
    pub fn GC_get_gc_no() -> GC_word;
}
pub type GC_oom_func =
    ::std::option::Option<unsafe extern "C" fn(arg1: size_t) -> *mut ::std::os::raw::c_void>;
extern "C" {
    pub static mut GC_oom_fn: GC_oom_func;
}
extern "C" {
    pub fn GC_set_oom_fn(arg1: GC_oom_func);
}
extern "C" {
    pub fn GC_get_oom_fn() -> GC_oom_func;
}
pub type GC_on_heap_resize_proc = ::std::option::Option<unsafe extern "C" fn(arg1: GC_word)>;
extern "C" {
    pub static mut GC_on_heap_resize: GC_on_heap_resize_proc;
}
extern "C" {
    pub fn GC_set_on_heap_resize(arg1: GC_on_heap_resize_proc);
}
extern "C" {
    pub fn GC_get_on_heap_resize() -> GC_on_heap_resize_proc;
}
pub const GC_EventType_GC_EVENT_START: GC_EventType = 0;
pub const GC_EventType_GC_EVENT_MARK_START: GC_EventType = 1;
pub const GC_EventType_GC_EVENT_MARK_END: GC_EventType = 2;
pub const GC_EventType_GC_EVENT_RECLAIM_START: GC_EventType = 3;
pub const GC_EventType_GC_EVENT_RECLAIM_END: GC_EventType = 4;
pub const GC_EventType_GC_EVENT_END: GC_EventType = 5;
pub const GC_EventType_GC_EVENT_PRE_STOP_WORLD: GC_EventType = 6;
pub const GC_EventType_GC_EVENT_POST_STOP_WORLD: GC_EventType = 7;
pub const GC_EventType_GC_EVENT_PRE_START_WORLD: GC_EventType = 8;
pub const GC_EventType_GC_EVENT_POST_START_WORLD: GC_EventType = 9;
pub const GC_EventType_GC_EVENT_THREAD_SUSPENDED: GC_EventType = 10;
pub const GC_EventType_GC_EVENT_THREAD_UNSUSPENDED: GC_EventType = 11;
pub type GC_EventType = ::std::os::raw::c_int;
pub type GC_on_collection_event_proc =
    ::std::option::Option<unsafe extern "C" fn(arg1: GC_EventType)>;
extern "C" {
    pub fn GC_set_on_collection_event(arg1: GC_on_collection_event_proc);
}
extern "C" {
    pub fn GC_get_on_collection_event() -> GC_on_collection_event_proc;
}
extern "C" {
    pub static mut GC_find_leak: ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_set_find_leak(arg1: ::std::os::raw::c_int);
}
extern "C" {
    pub fn GC_get_find_leak() -> ::std::os::raw::c_int;
}
extern "C" {
    pub static mut GC_all_interior_pointers: ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_set_all_interior_pointers(arg1: ::std::os::raw::c_int);
}
extern "C" {
    pub fn GC_get_all_interior_pointers() -> ::std::os::raw::c_int;
}
extern "C" {
    pub static mut GC_finalize_on_demand: ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_set_finalize_on_demand(arg1: ::std::os::raw::c_int);
}
extern "C" {
    pub fn GC_get_finalize_on_demand() -> ::std::os::raw::c_int;
}
extern "C" {
    pub static mut GC_java_finalization: ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_set_java_finalization(arg1: ::std::os::raw::c_int);
}
extern "C" {
    pub fn GC_get_java_finalization() -> ::std::os::raw::c_int;
}
pub type GC_finalizer_notifier_proc = ::std::option::Option<unsafe extern "C" fn()>;
extern "C" {
    pub static mut GC_finalizer_notifier: GC_finalizer_notifier_proc;
}
extern "C" {
    pub fn GC_set_finalizer_notifier(arg1: GC_finalizer_notifier_proc);
}
extern "C" {
    pub fn GC_get_finalizer_notifier() -> GC_finalizer_notifier_proc;
}
extern "C" {
    pub static mut GC_dont_gc: ::std::os::raw::c_int;
}
extern "C" {
    pub static mut GC_dont_expand: ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_set_dont_expand(arg1: ::std::os::raw::c_int);
}
extern "C" {
    pub fn GC_get_dont_expand() -> ::std::os::raw::c_int;
}
extern "C" {
    pub static mut GC_use_entire_heap: ::std::os::raw::c_int;
}
extern "C" {
    pub static mut GC_full_freq: ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_set_full_freq(arg1: ::std::os::raw::c_int);
}
extern "C" {
    pub fn GC_get_full_freq() -> ::std::os::raw::c_int;
}
extern "C" {
    pub static mut GC_non_gc_bytes: GC_word;
}
extern "C" {
    pub fn GC_set_non_gc_bytes(arg1: GC_word);
}
extern "C" {
    pub fn GC_get_non_gc_bytes() -> GC_word;
}
extern "C" {
    pub static mut GC_no_dls: ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_set_no_dls(arg1: ::std::os::raw::c_int);
}
extern "C" {
    pub fn GC_get_no_dls() -> ::std::os::raw::c_int;
}
extern "C" {
    pub static mut GC_free_space_divisor: GC_word;
}
extern "C" {
    pub fn GC_set_free_space_divisor(arg1: GC_word);
}
extern "C" {
    pub fn GC_get_free_space_divisor() -> GC_word;
}
extern "C" {
    pub static mut GC_max_retries: GC_word;
}
extern "C" {
    pub fn GC_set_max_retries(arg1: GC_word);
}
extern "C" {
    pub fn GC_get_max_retries() -> GC_word;
}
extern "C" {
    pub static mut GC_stackbottom: *mut ::std::os::raw::c_char;
}
extern "C" {
    pub static mut GC_dont_precollect: ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_set_dont_precollect(arg1: ::std::os::raw::c_int);
}
extern "C" {
    pub fn GC_get_dont_precollect() -> ::std::os::raw::c_int;
}
extern "C" {
    pub static mut GC_time_limit: ::std::os::raw::c_ulong;
}
extern "C" {
    pub fn GC_set_time_limit(arg1: ::std::os::raw::c_ulong);
}
extern "C" {
    pub fn GC_get_time_limit() -> ::std::os::raw::c_ulong;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GC_timeval_s {
    pub tv_ms: ::std::os::raw::c_ulong,
    pub tv_nsec: ::std::os::raw::c_ulong,
}
#[test]
fn bindgen_test_layout_GC_timeval_s() {
    assert_eq!(
        ::std::mem::size_of::<GC_timeval_s>(),
        8usize,
        concat!("Size of: ", stringify!(GC_timeval_s))
    );
    assert_eq!(
        ::std::mem::align_of::<GC_timeval_s>(),
        4usize,
        concat!("Alignment of ", stringify!(GC_timeval_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GC_timeval_s>())).tv_ms as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GC_timeval_s),
            "::",
            stringify!(tv_ms)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GC_timeval_s>())).tv_nsec as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(GC_timeval_s),
            "::",
            stringify!(tv_nsec)
        )
    );
}
extern "C" {
    pub fn GC_set_time_limit_tv(arg1: GC_timeval_s);
}
extern "C" {
    pub fn GC_get_time_limit_tv() -> GC_timeval_s;
}
extern "C" {
    pub fn GC_set_allocd_bytes_per_finalizer(arg1: GC_word);
}
extern "C" {
    pub fn GC_get_allocd_bytes_per_finalizer() -> GC_word;
}
extern "C" {
    pub fn GC_start_performance_measurement();
}
extern "C" {
    pub fn GC_get_full_gc_total_time() -> ::std::os::raw::c_ulong;
}
extern "C" {
    pub fn GC_set_pages_executable(arg1: ::std::os::raw::c_int);
}
extern "C" {
    pub fn GC_get_pages_executable() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_set_min_bytes_allocd(arg1: size_t);
}
extern "C" {
    pub fn GC_get_min_bytes_allocd() -> size_t;
}
extern "C" {
    pub fn GC_set_rate(arg1: ::std::os::raw::c_int);
}
extern "C" {
    pub fn GC_get_rate() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_set_max_prior_attempts(arg1: ::std::os::raw::c_int);
}
extern "C" {
    pub fn GC_get_max_prior_attempts() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_set_disable_automatic_collection(arg1: ::std::os::raw::c_int);
}
extern "C" {
    pub fn GC_get_disable_automatic_collection() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_set_handle_fork(arg1: ::std::os::raw::c_int);
}
extern "C" {
    pub fn GC_atfork_prepare();
}
extern "C" {
    pub fn GC_atfork_parent();
}
extern "C" {
    pub fn GC_atfork_child();
}
extern "C" {
    pub fn GC_init();
}
extern "C" {
    pub fn GC_is_init_called() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_deinit();
}
extern "C" {
    pub fn GC_malloc(arg1: size_t) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn GC_malloc_atomic(arg1: size_t) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn GC_strdup(arg1: *const ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn GC_strndup(
        arg1: *const ::std::os::raw::c_char,
        arg2: size_t,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn GC_malloc_uncollectable(arg1: size_t) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn GC_malloc_stubborn(arg1: size_t) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn GC_memalign(arg1: size_t, arg2: size_t) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn GC_posix_memalign(
        arg1: *mut *mut ::std::os::raw::c_void,
        arg2: size_t,
        arg3: size_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_free(arg1: *mut ::std::os::raw::c_void);
}
extern "C" {
    pub fn GC_change_stubborn(arg1: *const ::std::os::raw::c_void);
}
extern "C" {
    pub fn GC_end_stubborn_change(arg1: *const ::std::os::raw::c_void);
}
extern "C" {
    pub fn GC_base(arg1: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn GC_is_heap_ptr(arg1: *const ::std::os::raw::c_void) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_size(arg1: *const ::std::os::raw::c_void) -> size_t;
}
extern "C" {
    pub fn GC_realloc(
        arg1: *mut ::std::os::raw::c_void,
        arg2: size_t,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn GC_expand_hp(arg1: size_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_set_max_heap_size(arg1: GC_word);
}
extern "C" {
    pub fn GC_exclude_static_roots(
        arg1: *mut ::std::os::raw::c_void,
        arg2: *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    pub fn GC_clear_exclusion_table();
}
extern "C" {
    pub fn GC_clear_roots();
}
extern "C" {
    pub fn GC_add_roots(arg1: *mut ::std::os::raw::c_void, arg2: *mut ::std::os::raw::c_void);
}
extern "C" {
    pub fn GC_remove_roots(arg1: *mut ::std::os::raw::c_void, arg2: *mut ::std::os::raw::c_void);
}
extern "C" {
    pub fn GC_register_displacement(arg1: size_t);
}
extern "C" {
    pub fn GC_debug_register_displacement(arg1: size_t);
}
extern "C" {
    pub fn GC_gcollect();
}
extern "C" {
    pub fn GC_gcollect_and_unmap();
}
pub type GC_stop_func = ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>;
extern "C" {
    pub fn GC_try_to_collect(arg1: GC_stop_func) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_set_stop_func(arg1: GC_stop_func);
}
extern "C" {
    pub fn GC_get_stop_func() -> GC_stop_func;
}
extern "C" {
    pub fn GC_get_heap_size() -> size_t;
}
extern "C" {
    pub fn GC_get_free_bytes() -> size_t;
}
extern "C" {
    pub fn GC_get_unmapped_bytes() -> size_t;
}
extern "C" {
    pub fn GC_get_bytes_since_gc() -> size_t;
}
extern "C" {
    pub fn GC_get_expl_freed_bytes_since_gc() -> size_t;
}
extern "C" {
    pub fn GC_get_total_bytes() -> size_t;
}
extern "C" {
    pub fn GC_get_obtained_from_os_bytes() -> size_t;
}
extern "C" {
    pub fn GC_get_heap_usage_safe(
        arg1: *mut GC_word,
        arg2: *mut GC_word,
        arg3: *mut GC_word,
        arg4: *mut GC_word,
        arg5: *mut GC_word,
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GC_prof_stats_s {
    pub heapsize_full: GC_word,
    pub free_bytes_full: GC_word,
    pub unmapped_bytes: GC_word,
    pub bytes_allocd_since_gc: GC_word,
    pub allocd_bytes_before_gc: GC_word,
    pub non_gc_bytes: GC_word,
    pub gc_no: GC_word,
    pub markers_m1: GC_word,
    pub bytes_reclaimed_since_gc: GC_word,
    pub reclaimed_bytes_before_gc: GC_word,
    pub expl_freed_bytes_since_gc: GC_word,
    pub obtained_from_os_bytes: GC_word,
}
#[test]
fn bindgen_test_layout_GC_prof_stats_s() {
    assert_eq!(
        ::std::mem::size_of::<GC_prof_stats_s>(),
        96usize,
        concat!("Size of: ", stringify!(GC_prof_stats_s))
    );
    assert_eq!(
        ::std::mem::align_of::<GC_prof_stats_s>(),
        8usize,
        concat!("Alignment of ", stringify!(GC_prof_stats_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GC_prof_stats_s>())).heapsize_full as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GC_prof_stats_s),
            "::",
            stringify!(heapsize_full)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GC_prof_stats_s>())).free_bytes_full as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(GC_prof_stats_s),
            "::",
            stringify!(free_bytes_full)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GC_prof_stats_s>())).unmapped_bytes as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(GC_prof_stats_s),
            "::",
            stringify!(unmapped_bytes)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GC_prof_stats_s>())).bytes_allocd_since_gc as *const _ as usize
        },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(GC_prof_stats_s),
            "::",
            stringify!(bytes_allocd_since_gc)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GC_prof_stats_s>())).allocd_bytes_before_gc as *const _ as usize
        },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(GC_prof_stats_s),
            "::",
            stringify!(allocd_bytes_before_gc)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GC_prof_stats_s>())).non_gc_bytes as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(GC_prof_stats_s),
            "::",
            stringify!(non_gc_bytes)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GC_prof_stats_s>())).gc_no as *const _ as usize },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(GC_prof_stats_s),
            "::",
            stringify!(gc_no)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GC_prof_stats_s>())).markers_m1 as *const _ as usize },
        56usize,
        concat!(
            "Offset of field: ",
            stringify!(GC_prof_stats_s),
            "::",
            stringify!(markers_m1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GC_prof_stats_s>())).bytes_reclaimed_since_gc as *const _
                as usize
        },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(GC_prof_stats_s),
            "::",
            stringify!(bytes_reclaimed_since_gc)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GC_prof_stats_s>())).reclaimed_bytes_before_gc as *const _
                as usize
        },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(GC_prof_stats_s),
            "::",
            stringify!(reclaimed_bytes_before_gc)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GC_prof_stats_s>())).expl_freed_bytes_since_gc as *const _
                as usize
        },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(GC_prof_stats_s),
            "::",
            stringify!(expl_freed_bytes_since_gc)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<GC_prof_stats_s>())).obtained_from_os_bytes as *const _ as usize
        },
        88usize,
        concat!(
            "Offset of field: ",
            stringify!(GC_prof_stats_s),
            "::",
            stringify!(obtained_from_os_bytes)
        )
    );
}
extern "C" {
    pub fn GC_get_prof_stats(arg1: *mut GC_prof_stats_s, arg2: size_t) -> size_t;
}
extern "C" {
    pub fn GC_get_size_map_at(i: ::std::os::raw::c_int) -> size_t;
}
extern "C" {
    pub fn GC_get_memory_use() -> size_t;
}
extern "C" {
    pub fn GC_disable();
}
extern "C" {
    pub fn GC_is_disabled() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_enable();
}
extern "C" {
    pub fn GC_set_manual_vdb_allowed(arg1: ::std::os::raw::c_int);
}
extern "C" {
    pub fn GC_get_manual_vdb_allowed() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_enable_incremental();
}
extern "C" {
    pub fn GC_is_incremental_mode() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_incremental_protection_needs() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_start_incremental_collection();
}
extern "C" {
    pub fn GC_collect_a_little() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_malloc_ignore_off_page(arg1: size_t) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn GC_malloc_atomic_ignore_off_page(arg1: size_t) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn GC_malloc_atomic_uncollectable(arg1: size_t) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn GC_debug_malloc_atomic_uncollectable(
        arg1: size_t,
        s: *const ::std::os::raw::c_char,
        i: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn GC_debug_malloc(
        arg1: size_t,
        s: *const ::std::os::raw::c_char,
        i: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn GC_debug_malloc_atomic(
        arg1: size_t,
        s: *const ::std::os::raw::c_char,
        i: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn GC_debug_strdup(
        arg1: *const ::std::os::raw::c_char,
        s: *const ::std::os::raw::c_char,
        i: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn GC_debug_strndup(
        arg1: *const ::std::os::raw::c_char,
        arg2: size_t,
        s: *const ::std::os::raw::c_char,
        i: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn GC_debug_malloc_uncollectable(
        arg1: size_t,
        s: *const ::std::os::raw::c_char,
        i: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn GC_debug_malloc_stubborn(
        arg1: size_t,
        s: *const ::std::os::raw::c_char,
        i: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn GC_debug_malloc_ignore_off_page(
        arg1: size_t,
        s: *const ::std::os::raw::c_char,
        i: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn GC_debug_malloc_atomic_ignore_off_page(
        arg1: size_t,
        s: *const ::std::os::raw::c_char,
        i: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn GC_debug_free(arg1: *mut ::std::os::raw::c_void);
}
extern "C" {
    pub fn GC_debug_realloc(
        arg1: *mut ::std::os::raw::c_void,
        arg2: size_t,
        s: *const ::std::os::raw::c_char,
        i: ::std::os::raw::c_int,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn GC_debug_change_stubborn(arg1: *const ::std::os::raw::c_void);
}
extern "C" {
    pub fn GC_debug_end_stubborn_change(arg1: *const ::std::os::raw::c_void);
}
extern "C" {
    pub fn GC_debug_malloc_replacement(arg1: size_t) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn GC_debug_realloc_replacement(
        arg1: *mut ::std::os::raw::c_void,
        arg2: size_t,
    ) -> *mut ::std::os::raw::c_void;
}
pub type GC_finalization_proc = ::std::option::Option<
    unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void, arg2: *mut ::std::os::raw::c_void),
>;
extern "C" {
    pub fn GC_register_finalizer(
        arg1: *mut ::std::os::raw::c_void,
        arg2: GC_finalization_proc,
        arg3: *mut ::std::os::raw::c_void,
        arg4: *mut GC_finalization_proc,
        arg5: *mut *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    pub fn GC_debug_register_finalizer(
        arg1: *mut ::std::os::raw::c_void,
        arg2: GC_finalization_proc,
        arg3: *mut ::std::os::raw::c_void,
        arg4: *mut GC_finalization_proc,
        arg5: *mut *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    pub fn GC_register_finalizer_ignore_self(
        arg1: *mut ::std::os::raw::c_void,
        arg2: GC_finalization_proc,
        arg3: *mut ::std::os::raw::c_void,
        arg4: *mut GC_finalization_proc,
        arg5: *mut *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    pub fn GC_debug_register_finalizer_ignore_self(
        arg1: *mut ::std::os::raw::c_void,
        arg2: GC_finalization_proc,
        arg3: *mut ::std::os::raw::c_void,
        arg4: *mut GC_finalization_proc,
        arg5: *mut *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    pub fn GC_register_finalizer_no_order(
        arg1: *mut ::std::os::raw::c_void,
        arg2: GC_finalization_proc,
        arg3: *mut ::std::os::raw::c_void,
        arg4: *mut GC_finalization_proc,
        arg5: *mut *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    pub fn GC_debug_register_finalizer_no_order(
        arg1: *mut ::std::os::raw::c_void,
        arg2: GC_finalization_proc,
        arg3: *mut ::std::os::raw::c_void,
        arg4: *mut GC_finalization_proc,
        arg5: *mut *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    pub fn GC_register_finalizer_unreachable(
        arg1: *mut ::std::os::raw::c_void,
        arg2: GC_finalization_proc,
        arg3: *mut ::std::os::raw::c_void,
        arg4: *mut GC_finalization_proc,
        arg5: *mut *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    pub fn GC_debug_register_finalizer_unreachable(
        arg1: *mut ::std::os::raw::c_void,
        arg2: GC_finalization_proc,
        arg3: *mut ::std::os::raw::c_void,
        arg4: *mut GC_finalization_proc,
        arg5: *mut *mut ::std::os::raw::c_void,
    );
}
extern "C" {
    pub fn GC_register_disappearing_link(
        arg1: *mut *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_general_register_disappearing_link(
        arg1: *mut *mut ::std::os::raw::c_void,
        arg2: *const ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_move_disappearing_link(
        arg1: *mut *mut ::std::os::raw::c_void,
        arg2: *mut *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_unregister_disappearing_link(
        arg1: *mut *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_register_long_link(
        arg1: *mut *mut ::std::os::raw::c_void,
        arg2: *const ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_move_long_link(
        arg1: *mut *mut ::std::os::raw::c_void,
        arg2: *mut *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_unregister_long_link(arg1: *mut *mut ::std::os::raw::c_void)
        -> ::std::os::raw::c_int;
}
pub const GC_ToggleRefStatus_GC_TOGGLE_REF_DROP: GC_ToggleRefStatus = 0;
pub const GC_ToggleRefStatus_GC_TOGGLE_REF_STRONG: GC_ToggleRefStatus = 1;
pub const GC_ToggleRefStatus_GC_TOGGLE_REF_WEAK: GC_ToggleRefStatus = 2;
pub type GC_ToggleRefStatus = ::std::os::raw::c_int;
pub type GC_toggleref_func = ::std::option::Option<
    unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> GC_ToggleRefStatus,
>;
extern "C" {
    pub fn GC_set_toggleref_func(arg1: GC_toggleref_func);
}
extern "C" {
    pub fn GC_get_toggleref_func() -> GC_toggleref_func;
}
extern "C" {
    pub fn GC_toggleref_add(
        arg1: *mut ::std::os::raw::c_void,
        arg2: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
pub type GC_await_finalize_proc =
    ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>;
extern "C" {
    pub fn GC_set_await_finalize_proc(arg1: GC_await_finalize_proc);
}
extern "C" {
    pub fn GC_get_await_finalize_proc() -> GC_await_finalize_proc;
}
extern "C" {
    pub fn GC_should_invoke_finalizers() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_invoke_finalizers() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_noop1(arg1: GC_word);
}
pub type GC_warn_proc =
    ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_char, arg2: GC_word)>;
extern "C" {
    pub fn GC_set_warn_proc(arg1: GC_warn_proc);
}
extern "C" {
    pub fn GC_get_warn_proc() -> GC_warn_proc;
}
extern "C" {
    pub fn GC_ignore_warn_proc(arg1: *mut ::std::os::raw::c_char, arg2: GC_word);
}
extern "C" {
    pub fn GC_set_log_fd(arg1: ::std::os::raw::c_int);
}
pub type GC_abort_func =
    ::std::option::Option<unsafe extern "C" fn(arg1: *const ::std::os::raw::c_char)>;
extern "C" {
    pub fn GC_set_abort_func(arg1: GC_abort_func);
}
extern "C" {
    pub fn GC_get_abort_func() -> GC_abort_func;
}
extern "C" {
    pub fn GC_abort_on_oom();
}
pub type GC_hidden_pointer = GC_word;
pub type GC_fn_type = ::std::option::Option<
    unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void,
>;
extern "C" {
    pub fn GC_call_with_alloc_lock(
        arg1: GC_fn_type,
        arg2: *mut ::std::os::raw::c_void,
    ) -> *mut ::std::os::raw::c_void;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GC_stack_base {
    pub mem_base: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_GC_stack_base() {
    assert_eq!(
        ::std::mem::size_of::<GC_stack_base>(),
        8usize,
        concat!("Size of: ", stringify!(GC_stack_base))
    );
    assert_eq!(
        ::std::mem::align_of::<GC_stack_base>(),
        8usize,
        concat!("Alignment of ", stringify!(GC_stack_base))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<GC_stack_base>())).mem_base as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(GC_stack_base),
            "::",
            stringify!(mem_base)
        )
    );
}
pub type GC_stack_base_func = ::std::option::Option<
    unsafe extern "C" fn(
        arg1: *mut GC_stack_base,
        arg2: *mut ::std::os::raw::c_void,
    ) -> *mut ::std::os::raw::c_void,
>;
extern "C" {
    pub fn GC_call_with_stack_base(
        arg1: GC_stack_base_func,
        arg2: *mut ::std::os::raw::c_void,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn GC_do_blocking(
        arg1: GC_fn_type,
        arg2: *mut ::std::os::raw::c_void,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn GC_call_with_gc_active(
        arg1: GC_fn_type,
        arg2: *mut ::std::os::raw::c_void,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn GC_get_stack_base(arg1: *mut GC_stack_base) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_get_my_stackbottom(arg1: *mut GC_stack_base) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn GC_set_stackbottom(arg1: *mut ::std::os::raw::c_void, arg2: *const GC_stack_base);
}
extern "C" {
    pub fn GC_same_obj(
        arg1: *mut ::std::os::raw::c_void,
        arg2: *mut ::std::os::raw::c_void,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn GC_pre_incr(
        arg1: *mut *mut ::std::os::raw::c_void,
        arg2: isize,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn GC_post_incr(
        arg1: *mut *mut ::std::os::raw::c_void,
        arg2: isize,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn GC_is_visible(arg1: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn GC_is_valid_displacement(
        arg1: *mut ::std::os::raw::c_void,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn GC_dump();
}
extern "C" {
    pub fn GC_dump_named(arg1: *const ::std::os::raw::c_char);
}
extern "C" {
    pub fn GC_dump_regions();
}
extern "C" {
    pub fn GC_dump_finalization();
}
extern "C" {
    pub fn GC_ptr_store_and_dirty(
        arg1: *mut ::std::os::raw::c_void,
        arg2: *const ::std::os::raw::c_void,
    );
}
extern "C" {
    pub fn GC_debug_ptr_store_and_dirty(
        arg1: *mut ::std::os::raw::c_void,
        arg2: *const ::std::os::raw::c_void,
    );
}
extern "C" {
    pub static mut GC_same_obj_print_proc: ::std::option::Option<
        unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void, arg2: *mut ::std::os::raw::c_void),
    >;
}
extern "C" {
    pub static mut GC_is_valid_displacement_print_proc:
        ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>;
}
extern "C" {
    pub static mut GC_is_visible_print_proc:
        ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>;
}
extern "C" {
    pub fn GC_malloc_many(arg1: size_t) -> *mut ::std::os::raw::c_void;
}
pub type GC_has_static_roots_func = ::std::option::Option<
    unsafe extern "C" fn(
        arg1: *const ::std::os::raw::c_char,
        arg2: *mut ::std::os::raw::c_void,
        arg3: size_t,
    ) -> ::std::os::raw::c_int,
>;
extern "C" {
    pub fn GC_register_has_static_roots_callback(arg1: GC_has_static_roots_func);
}
extern "C" {
    pub fn GC_set_force_unmap_on_gcollect(arg1: ::std::os::raw::c_int);
}
extern "C" {
    pub fn GC_get_force_unmap_on_gcollect() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn GC_win32_free_heap();
}