-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathruntime.inc
1834 lines (1620 loc) · 32.3 KB
/
runtime.inc
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
#define hashRandomBytes 128
#define maxAlign 8
#define hchanSize 96
#define maxCPUProfStack 64
#define debugLogBytes 16384
#define debugLogStringLimit 2048
#define debugLogUnknown 1
#define debugLogBoolTrue 2
#define debugLogBoolFalse 3
#define debugLogInt 4
#define debugLogUint 5
#define debugLogHex 6
#define debugLogPtr 7
#define debugLogString 8
#define debugLogConstString 9
#define debugLogStringOverflow 10
#define debugLogPC 11
#define debugLogTraceback 12
#define debugLogHeaderSize 2
#define debugLogSyncSize 18
#define boundsIndex 0
#define boundsSliceAlen 1
#define boundsSliceAcap 2
#define boundsSliceB 3
#define boundsSlice3Alen 4
#define boundsSlice3Acap 5
#define boundsSlice3B 6
#define boundsSlice3C 7
#define boundsConvert 8
#define fastlogNumBits 5
#define fieldKindEol 0
#define fieldKindPtr 1
#define fieldKindIface 2
#define fieldKindEface 3
#define tagEOF 0
#define tagObject 1
#define tagOtherRoot 2
#define tagType 3
#define tagGoroutine 4
#define tagStackFrame 5
#define tagParams 6
#define tagFinalizer 7
#define tagItab 8
#define tagOSThread 9
#define tagMemStats 10
#define tagQueuedFinalizer 11
#define tagData 12
#define tagBSS 13
#define tagDefer 14
#define tagPanic 15
#define tagMemProf 16
#define tagAllocSample 17
#define bufSize 4096
#define typeCacheBuckets 256
#define typeCacheAssoc 4
#define timeHistSubBucketBits 4
#define timeHistNumSubBuckets 16
#define timeHistNumSuperBuckets 45
#define timeHistTotalBuckets 721
#define fInf 9218868437227405312
#define fNegInf 18442240474082181120
#define itabInitSize 512
#define addrBits 48
#define cntBits 19
#define sparcLinuxAddrBits 52
#define sparcLinuxCntBits 15
#define ia64AddrBits 55
#define ia64CntBits 12
#define aixAddrBits 57
#define aixCntBits 10
#define mutex_unlocked 0
#define mutex_locked 1
#define mutex_sleeping 2
#define active_spin 4
#define active_spin_cnt 30
#define passive_spin 1
#define lockRankDummy 0
#define lockRankSysmon 1
#define lockRankScavenge 2
#define lockRankForcegc 3
#define lockRankSweepWaiters 4
#define lockRankAssistQueue 5
#define lockRankCpuprof 6
#define lockRankSweep 7
#define lockRankPollDesc 8
#define lockRankSched 9
#define lockRankDeadlock 10
#define lockRankAllg 11
#define lockRankAllp 12
#define lockRankTimers 13
#define lockRankItab 14
#define lockRankReflectOffs 15
#define lockRankHchan 16
#define lockRankTraceBuf 17
#define lockRankFin 18
#define lockRankNotifyList 19
#define lockRankTraceStrings 20
#define lockRankMspanSpecial 21
#define lockRankProf 22
#define lockRankGcBitsArenas 23
#define lockRankRoot 24
#define lockRankTrace 25
#define lockRankTraceStackTab 26
#define lockRankNetpollInit 27
#define lockRankRwmutexW 28
#define lockRankRwmutexR 29
#define lockRankSpanSetSpine 30
#define lockRankGscan 31
#define lockRankStackpool 32
#define lockRankStackLarge 33
#define lockRankDefer 34
#define lockRankSudog 35
#define lockRankWbufSpans 36
#define lockRankMheap 37
#define lockRankMheapSpecial 38
#define lockRankGlobalAlloc 39
#define lockRankPageAllocScav 40
#define lockRankGFree 41
#define lockRankHchanLeaf 42
#define lockRankPanic 43
#define lockRankNewmHandoff 44
#define lockRankDebugPtrmask 45
#define lockRankFaketimeState 46
#define lockRankTicks 47
#define lockRankRaceFini 48
#define lockRankPollCache 49
#define lockRankDebug 50
#define lockRankLeafRank 1000
#define maxTinySize 16
#define tinySizeClass 2
#define maxSmallSize 32768
#define pageShift 13
#define pageSize 8192
#define pageMask 8191
#define maxObjsPerSpan 1024
#define heapAddrBits 48
#define maxAlloc 281474976710656
#define heapArenaBytes 67108864
#define logHeapArenaBytes 26
#define heapArenaBitmapBytes 2097152
#define pagesPerArena 8192
#define arenaL1Bits 0
#define arenaL2Bits 22
#define arenaL1Shift 22
#define arenaBits 22
#define arenaBaseOffset 18446603336221196288
#define arenaBaseOffsetUintptr 18446603336221196288
#define minLegalPointer 4096
#define persistentChunkSize 262144
#define bucketCntBits 3
#define bucketCnt 8
#define loadFactorNum 13
#define loadFactorDen 2
#define maxKeySize 128
#define maxElemSize 128
#define dataOffset 8
#define emptyRest 0
#define emptyOne 1
#define evacuatedX 2
#define evacuatedY 3
#define evacuatedEmpty 4
#define minTopHash 5
#define iterator 1
#define oldIterator 2
#define hashWriting 4
#define sameSizeGrow 8
#define noCheck 18446744073709551615
#define maxZero 1024
#define bitPointer 1
#define bitScan 16
#define heapBitsShift 1
#define wordsPerBitmapByte 4
#define bitScanAll 240
#define bitPointerAll 15
#define clobberdeadPtr 16045725885737590445
#define heapStatsDep 0
#define sysStatsDep 1
#define numStatsDeps 2
#define metricKindBad 0
#define metricKindUint64 1
#define metricKindFloat64 2
#define metricKindFloat64Histogram 3
#define sweepMinHeapDistance 1048576
#define gcMarkWorkerNotWorker 0
#define gcMarkWorkerDedicatedMode 1
#define gcMarkWorkerFractionalMode 2
#define gcMarkWorkerIdleMode 3
#define gcBackgroundMode 0
#define gcForceMode 1
#define gcForceBlockMode 2
#define gcTriggerHeap 0
#define gcTriggerTime 1
#define gcTriggerCycle 2
#define fixedRootFinalizers 0
#define fixedRootFreeGStacks 1
#define fixedRootCount 2
#define rootBlockBytes 262144
#define maxObletBytes 131072
#define drainCheckThreshold 100000
#define pagesPerSpanRoot 512
#define gcDrainUntilPreempt 1
#define gcDrainFlushBgCredit 2
#define gcDrainIdle 4
#define gcDrainFractional 8
#define gcCreditSlack 2000
#define gcAssistTimeSlack 5000
#define gcOverAssistWork 65536
#define defaultHeapMinimum 4194304
#define scannableStackSizeSlack 8192
#define scavengePercent 1
#define retainExtraPercent 10
#define maxPagesPerPhysPage 64
#define scavengeReservationShards 64
#define numSweepClasses 272
#define sweepClassDone 4294967295
#define sweepDrainedMask 2147483648
#define workbufAlloc 32768
#define minPhysPageSize 4096
#define maxPhysPageSize 524288
#define maxPhysHugePageSize 4194304
#define pagesPerReclaimerChunk 512
#define mSpanDead 0
#define mSpanManual 2
#define numSpanClasses 136
#define tinySpanClass 5
#define spanAllocHeap 0
#define spanAllocStack 1
#define spanAllocPtrScalarBits 2
#define spanAllocWorkBuf 3
#define gcBitsChunkBytes 65536
#define gcBitsHeaderBytes 16
#define pallocChunkPages 512
#define pallocChunkBytes 4194304
#define logPallocChunkPages 9
#define logPallocChunkBytes 22
#define summaryLevelBits 3
#define summaryL0Bits 14
#define pallocChunksL2Bits 13
#define pallocChunksL1Shift 13
#define pallocSumBytes 8
#define maxPackedValue 2097152
#define logMaxPackedValue 21
#define freeChunkSum 2251800887427584
#define summaryLevels 5
#define pageAlloc32Bit 0
#define pageAlloc64Bit 1
#define pallocChunksL1Bits 13
#define pageCachePages 64
#define memProfile 1
#define blockProfile 2
#define mutexProfile 3
#define prunedProfile 4
#define buckHashSize 179999
#define maxStack 32
#define mProfCycleWrap 100663296
#define spanSetBlockEntries 512
#define spanSetInitSpineCap 256
#define wbBufEntries 256
#define wbBufEntryPointers 2
#define pollNoError 0
#define pollErrClosing 1
#define pollErrTimeout 2
#define pollErrNotPollable 3
#define pdReady 1
#define pdWait 2
#define pollBlockSize 4096
#define pollClosing 1
#define pollEventErr 2
#define pollExpiredReadDeadline 4
#define pollExpiredWriteDeadline 8
#define freezeStopWait 2147483647
#define forcePreemptNS 10000000
#define profReaderSleeping 4294967296
#define profWriteExtra 8589934592
#define profBufBlocking 0
#define profBufNonBlocking 1
#define osRelaxMinNS 0
#define tracebackCrash 1
#define tracebackAll 2
#define tracebackShift 2
#define gTrackingPeriod 8
#define tlsSlots 6
#define tlsSize 48
#define waitReasonZero 0
#define waitReasonGCAssistMarking 1
#define waitReasonIOWait 2
#define waitReasonChanReceiveNilChan 3
#define waitReasonChanSendNilChan 4
#define waitReasonDumpingHeap 5
#define waitReasonGarbageCollection 6
#define waitReasonGarbageCollectionScan 7
#define waitReasonPanicWait 8
#define waitReasonSelect 9
#define waitReasonSelectNoCases 10
#define waitReasonGCAssistWait 11
#define waitReasonGCSweepWait 12
#define waitReasonGCScavengeWait 13
#define waitReasonChanReceive 14
#define waitReasonChanSend 15
#define waitReasonFinalizerWait 16
#define waitReasonForceGCIdle 17
#define waitReasonSemacquire 18
#define waitReasonSleep 19
#define waitReasonSyncCondWait 20
#define waitReasonTimerGoroutineIdle 21
#define waitReasonTraceReaderBlocked 22
#define waitReasonWaitForGCCycle 23
#define waitReasonGCWorkerIdle 24
#define waitReasonPreempted 25
#define waitReasonDebugCall 26
#define rwmutexMaxReaders 1073741824
#define selectSend 1
#define selectRecv 2
#define selectDefault 3
#define semTabSize 251
#define semaBlockProfile 1
#define semaMutexProfile 2
#define sigPreempt 23
#define sigIdle 0
#define sigReceiving 1
#define sigSending 2
#define smallSizeDiv 8
#define smallSizeMax 1024
#define largeSizeDiv 128
#define tmpStringBufSize 32
#define maxUint 18446744073709551615
#define maxInt 9223372036854775807
#define uintptrMask 18446744073709551615
#define timerNoStatus 0
#define timerWaiting 1
#define timerRunning 2
#define timerDeleted 3
#define timerRemoving 4
#define timerRemoved 5
#define timerModifying 6
#define timerModifiedEarlier 7
#define timerModifiedLater 8
#define timerMoving 9
#define maxWhen 9223372036854775807
#define traceEvNone 0
#define traceEvBatch 1
#define traceEvFrequency 2
#define traceEvStack 3
#define traceEvGomaxprocs 4
#define traceEvProcStart 5
#define traceEvProcStop 6
#define traceEvGCStart 7
#define traceEvGCDone 8
#define traceEvGCSTWStart 9
#define traceEvGCSTWDone 10
#define traceEvGCSweepStart 11
#define traceEvGCSweepDone 12
#define traceEvGoCreate 13
#define traceEvGoStart 14
#define traceEvGoEnd 15
#define traceEvGoStop 16
#define traceEvGoSched 17
#define traceEvGoPreempt 18
#define traceEvGoSleep 19
#define traceEvGoBlock 20
#define traceEvGoUnblock 21
#define traceEvGoBlockSend 22
#define traceEvGoBlockRecv 23
#define traceEvGoBlockSelect 24
#define traceEvGoBlockSync 25
#define traceEvGoBlockCond 26
#define traceEvGoBlockNet 27
#define traceEvGoSysCall 28
#define traceEvGoSysExit 29
#define traceEvGoSysBlock 30
#define traceEvGoWaiting 31
#define traceEvGoInSyscall 32
#define traceEvHeapAlloc 33
#define traceEvHeapGoal 34
#define traceEvTimerGoroutine 35
#define traceEvFutileWakeup 36
#define traceEvString 37
#define traceEvGoStartLocal 38
#define traceEvGoUnblockLocal 39
#define traceEvGoSysExitLocal 40
#define traceEvGoStartLabel 41
#define traceEvGoBlockGC 42
#define traceEvGCMarkAssistStart 43
#define traceEvGCMarkAssistDone 44
#define traceEvUserTaskCreate 45
#define traceEvUserTaskEnd 46
#define traceEvUserRegion 47
#define traceEvUserLog 48
#define traceEvCount 49
#define traceTickDiv 64
#define traceStackSize 128
#define traceBytesPerNumber 10
#define traceArgCountShift 6
#define traceFutileWakeup 128
#define tflagRegularMemory 8
#define kindBool 1
#define kindInt 2
#define kindInt8 3
#define kindInt16 4
#define kindInt32 5
#define kindInt64 6
#define kindUint 7
#define kindUint8 8
#define kindUint16 9
#define kindUint32 10
#define kindUint64 11
#define kindUintptr 12
#define kindFloat32 13
#define kindFloat64 14
#define kindComplex64 15
#define kindComplex128 16
#define kindArray 17
#define kindChan 18
#define kindFunc 19
#define kindInterface 20
#define kindMap 21
#define kindPtr 22
#define kindSlice 23
#define kindString 24
#define kindStruct 25
#define kindUnsafePointer 26
#define kindDirectIface 32
#define kindGCProg 64
#define kindMask 31
#define runeError 65533
#define runeSelf 128
#define maxRune 1114111
#define surrogateMin 55296
#define surrogateMax 57343
#define t1 0
#define tx 128
#define t2 192
#define t3 224
#define t4 240
#define t5 248
#define maskx 63
#define mask2 31
#define mask3 15
#define mask4 7
#define rune1Max 127
#define rune2Max 2047
#define rune3Max 65535
#define locb 128
#define hicb 191
struct sudog;
struct waitq {
struct sudog* first;
struct sudog* last;
};
struct _type;
struct TypeAssertionError {
struct _type* _interface;
struct _type* concrete;
struct _type* asserted;
String missingMethod;
};
struct errorCString {
uintptr_t cstr;
};
struct errorAddressString {
String msg;
uintptr_t addr;
};
struct typeCacheBucket {
struct _type* t[4];
};
struct gobitvector {
uintptr_t n;
Slice bytedata;
};
struct timeHistogram {
uint64_t counts[720];
uint64_t underflow;
};
struct interfacetype;
struct itab {
struct interfacetype* inter;
void* methods[2];
};
struct itabTableType {
uintptr_t size;
uintptr_t count;
struct itab* entries[512];
};
struct persistentAlloc {
struct notInHeap* base;
uintptr_t off;
};
struct linearAlloc {
uintptr_t next;
uintptr_t mapped;
uintptr_t end;
_Bool mapMemory;
};
struct mapextra;
struct hmap {
int64_t count;
uint8_t flags;
uint8_t B;
uint16_t noverflow;
uint32_t hash0;
void* buckets;
void* oldbuckets;
uintptr_t nevacuate;
struct mapextra* extra;
};
struct bmap;
struct mapextra {
Slice* overflow;
Slice* oldoverflow;
struct bmap* nextOverflow;
};
struct bmap {
uint8_t tophash[8];
};
struct maptype;
struct hiter {
void* key;
void* elem;
struct maptype* t;
struct hmap* h;
void* buckets;
struct bmap* bptr;
Slice* overflow;
Slice* oldoverflow;
uintptr_t startBucket;
uint8_t offset;
_Bool wrapped;
uint8_t B;
uint8_t i;
uintptr_t bucket;
uintptr_t checkBucket;
};
struct evacDst {
struct bmap* b;
int64_t i;
void* k;
void* e;
};
struct heapBits {
uint8_t* bitp;
uint32_t shift;
uint32_t arena;
uint8_t* last;
};
struct markBits {
uint8_t* bytep;
uint8_t mask;
uintptr_t index;
};
struct mspan;
struct mcache {
uintptr_t nextSample;
uintptr_t scanAlloc;
uintptr_t tiny;
uintptr_t tinyoffset;
uintptr_t tinyAllocs;
struct mspan* alloc[136];
uint32_t flushGen;
};
struct gclink {
uint64_t next;
};
struct metricData {
uint64_t deps[1];
FuncVal* compute;
};
struct sysStatsAggregate {
uint64_t stacksSys;
uint64_t mSpanSys;
uint64_t mSpanInUse;
uint64_t mCacheSys;
uint64_t mCacheInUse;
uint64_t buckHashSys;
uint64_t gcMiscSys;
uint64_t otherSys;
uint64_t heapGoal;
uint64_t gcCyclesDone;
uint64_t gcCyclesForced;
};
struct metricValue {
int64_t kind;
uint64_t scalar;
void* pointer;
};
struct metricFloat64Histogram {
Slice counts;
Slice buckets;
};
struct funcval;
struct functype;
struct ptrtype;
struct finalizer {
struct funcval* fn;
void* arg;
struct functype* ft;
struct ptrtype* ot;
};
struct mlink;
struct fixalloc {
uintptr_t size;
FuncVal* first;
void* arg;
struct mlink* list;
uintptr_t chunk;
uint32_t nchunk;
uint32_t nalloc;
uintptr_t inuse;
uint64_t* stat;
_Bool zero;
};
struct mlink {
struct mlink* next;
};
struct gcTrigger {
int64_t kind;
int64_t now;
uint32_t n;
};
struct gcRoot {
void* decl;
uintptr_t size;
uintptr_t ptrdata;
uint8_t* gcdata;
};
struct gcRootList {
struct gcRootList* next;
int64_t count;
struct gcRoot roots[67108864];
};
struct piController {
double kp;
double ti;
double tt;
double min;
double max;
double errIntegral;
_Bool errOverflow;
_Bool inputOverflow;
};
struct sweepLocker {
uint32_t sweepGen;
_Bool valid;
};
struct sweepLocked {
struct mspan* mspan;
};
struct workbuf;
struct gcWork {
struct workbuf* wbuf1;
struct workbuf* wbuf2;
uint64_t bytesMarked;
int64_t heapScanWork;
_Bool flushedWork;
};
struct arenaHint {
uintptr_t addr;
_Bool down;
struct arenaHint* next;
};
struct mSpanStateBox {
uint8_t s;
};
struct mSpanList {
struct mspan* first;
struct mspan* last;
};
struct special {
struct special* next;
uint16_t offset;
uint8_t kind;
};
struct specialfinalizer {
struct special special;
struct funcval* fn;
struct functype* ft;
struct ptrtype* ot;
};
struct bucket;
struct specialprofile {
struct special special;
struct bucket* b;
};
struct specialReachable {
struct special special;
_Bool done;
_Bool reachable;
};
struct specialsIter {
struct special** pprev;
struct special* s;
};
struct gcBitsHeader {
uintptr_t free;
uintptr_t next;
};
struct gcBitsArena {
uintptr_t free;
struct gcBitsArena* next;
uint8_t bits[65520];
};
struct pageCache {
uintptr_t base;
uint64_t cache;
uint64_t scav;
};
struct pallocData {
uint64_t pallocBits[8];
uint64_t scavenged[8];
};
struct bucket {
struct bucket* next;
struct bucket* allnext;
int64_t typ;
uintptr_t hash;
uintptr_t size;
uintptr_t nstk;
int64_t skip;
};
struct memRecordCycle {
uintptr_t allocs;
uintptr_t frees;
uintptr_t alloc_bytes;
uintptr_t free_bytes;
};
struct blockRecord {
double count;
int64_t cycles;
};
struct StackRecord {
uintptr_t Stack0[32];
};
struct MemProfileRecord {
int64_t AllocBytes;
int64_t FreeBytes;
int64_t AllocObjects;
int64_t FreeObjects;
uintptr_t Stack0[32];
};
struct BlockProfileRecord {
int64_t Count;
int64_t Cycles;
struct StackRecord StackRecord;
};
struct offAddr {
uintptr_t a;
};
struct addrRanges {
Slice ranges;
uintptr_t totalBytes;
uint64_t* sysStat;
};
struct spanSetBlockAlloc {
uint64_t stack;
};
struct MemStats {
uint64_t Alloc;
uint64_t TotalAlloc;
uint64_t Sys;
uint64_t Lookups;
uint64_t Mallocs;
uint64_t Frees;
uint64_t HeapAlloc;
uint64_t HeapSys;
uint64_t HeapIdle;
uint64_t HeapInuse;
uint64_t HeapReleased;
uint64_t HeapObjects;
uint64_t StackInuse;
uint64_t StackSys;
uint64_t MSpanInuse;
uint64_t MSpanSys;
uint64_t MCacheInuse;
uint64_t MCacheSys;
uint64_t BuckHashSys;
uint64_t GCSys;
uint64_t OtherSys;
uint64_t NextGC;
uint64_t LastGC;
uint64_t PauseTotalNs;
uint64_t PauseNs[256];
uint64_t PauseEnd[256];
uint32_t NumGC;
uint32_t NumForcedGC;
double GCCPUFraction;
_Bool EnableGC;
_Bool DebugGC;
struct {
uint32_t Size;
uint64_t Mallocs;
uint64_t Frees;
} BySize[61];
};
struct heapStatsDelta {
int64_t committed;
int64_t released;
int64_t inHeap;
int64_t inStacks;
int64_t inWorkBufs;
int64_t inPtrScalarBits;
uintptr_t tinyAllocCount;
uintptr_t largeAlloc;
uintptr_t largeAllocCount;
uintptr_t smallAllocCount[68];
uintptr_t largeFree;
uintptr_t largeFreeCount;
uintptr_t smallFreeCount[68];
uint32_t _[0];
};
struct wbBuf {
uintptr_t next;
uintptr_t end;
uintptr_t buf[512];
};
struct mOS {
int32_t profileTimer;
uint32_t profileTimerValid;
};
struct g;
struct suspendGState {
struct g* g;
_Bool dead;
_Bool stopped;
};
struct sysmontick {
uint32_t schedtick;
int64_t schedwhen;
uint32_t syscalltick;
int64_t syscallwhen;
};
struct gQueue {
uint64_t head;
uint64_t tail;
};
struct gList {
uint64_t head;
};
struct randomOrder {
uint32_t count;
Slice coprimes;
};
struct randomEnum {
uint32_t i;
uint32_t count;
uint32_t pos;
uint32_t inc;
};
struct tracestat {
_Bool active;
int64_t id;
uint64_t allocs;
uint64_t bytes;
};
struct dbgVar {
String name;
int32_t* value;
};
struct mutex {
uintptr_t key;
};
struct note {
uintptr_t key;
};
struct funcval {
uintptr_t fn;
};
struct iface {
void* tab;
void* data;
};
struct eface {
struct _type* _type;
void* data;
};
struct hchan;
struct sudog {
struct g* g;
struct sudog* next;
struct sudog* prev;
void* elem;
int64_t acquiretime;
int64_t releasetime;
uint32_t ticket;
_Bool isSelect;
_Bool success;
struct sudog* parent;
struct sudog* waitlink;
struct sudog* waittail;
struct hchan* c;
};
struct heldLockInfo {
uintptr_t lockAddr;
int64_t rank;
};
struct _panic;
struct _defer;
struct m;
struct timer;
struct g {