diff options
| author | Austin Clements <austin@google.com> | 2023-04-17 16:50:00 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-04-21 19:28:49 +0000 |
| commit | 7843ca83e7c8229f4fdca22949428a2418f45138 (patch) | |
| tree | af287142e7909423c1e4ea9873c21b15f60aa06b /src/runtime/symtab.go | |
| parent | 2668a190baa302a1fd7e22285cdb343af67530ad (diff) | |
| download | go-7843ca83e7c8229f4fdca22949428a2418f45138.tar.xz | |
internal/abi, runtime, cmd: merge PCDATA_* and FUNCDATA_* consts into internal/abi
We also rename the constants related to unsafe-points: currently, they
follow the same naming scheme as the PCDATA table indexes, but are not
PCDATA table indexes.
For #59670.
Change-Id: I06529fecfae535be5fe7d9ac56c886b9106c74fd
Reviewed-on: https://go-review.googlesource.com/c/go/+/485497
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Austin Clements <austin@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/runtime/symtab.go')
| -rw-r--r-- | src/runtime/symtab.go | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/runtime/symtab.go b/src/runtime/symtab.go index 82c6c9af54..b11854c943 100644 --- a/src/runtime/symtab.go +++ b/src/runtime/symtab.go @@ -296,45 +296,6 @@ func (f *_func) funcInfo() funcInfo { return funcInfo{f, mod} } -// PCDATA and FUNCDATA table indexes. -// -// See funcdata.h and ../cmd/internal/objabi/funcdata.go. -const ( - _PCDATA_UnsafePoint = 0 - _PCDATA_StackMapIndex = 1 - _PCDATA_InlTreeIndex = 2 - _PCDATA_ArgLiveIndex = 3 - - _FUNCDATA_ArgsPointerMaps = 0 - _FUNCDATA_LocalsPointerMaps = 1 - _FUNCDATA_StackObjects = 2 - _FUNCDATA_InlTree = 3 - _FUNCDATA_OpenCodedDeferInfo = 4 - _FUNCDATA_ArgInfo = 5 - _FUNCDATA_ArgLiveInfo = 6 - _FUNCDATA_WrapInfo = 7 - - _ArgsSizeUnknown = -0x80000000 -) - -const ( - // PCDATA_UnsafePoint values. - _PCDATA_UnsafePointSafe = -1 // Safe for async preemption - _PCDATA_UnsafePointUnsafe = -2 // Unsafe for async preemption - - // _PCDATA_Restart1(2) apply on a sequence of instructions, within - // which if an async preemption happens, we should back off the PC - // to the start of the sequence when resume. - // We need two so we can distinguish the start/end of the sequence - // in case that two sequences are next to each other. - _PCDATA_Restart1 = -3 - _PCDATA_Restart2 = -4 - - // Like _PCDATA_RestartAtEntry, but back to function entry if async - // preempted. - _PCDATA_RestartAtEntry = -5 -) - // pcHeader holds data used by the pclntab lookups. type pcHeader struct { magic uint32 // 0xFFFFFFF1 |
