mirror of
https://github.com/ii64/sonic.git
synced 2026-06-21 00:46:43 +08:00
fix: add nocheckptr directive (#365)
This commit is contained in:
parent
a978cdb8c5
commit
e60b9541cd
2 changed files with 4 additions and 3 deletions
6
.github/workflows/push-check-go118.yml
vendored
6
.github/workflows/push-check-go118.yml
vendored
|
|
@ -25,8 +25,8 @@ jobs:
|
||||||
|
|
||||||
- name: Unit Test
|
- name: Unit Test
|
||||||
run: |
|
run: |
|
||||||
GOMAXPROCS=4 go test -v -gcflags=-d=checkptr=0 ./...
|
GOMAXPROCS=4 go test -v -race -gcflags=-d=checkptr=0 ./...
|
||||||
GOMAXPROCS=4 go test -v -gcflags=-d=checkptr=0 ./external_jsonlib_test/...
|
GOMAXPROCS=4 go test -v -race -gcflags=-d=checkptr=0 ./external_jsonlib_test/...
|
||||||
|
|
||||||
- name: Generic Test
|
- name: Generic Test
|
||||||
run: GOMAXPROCS=4 go test -v -gcflags=-d=checkptr=0 ./generic_test
|
run: GOMAXPROCS=4 go test -v -race -gcflags=-d=checkptr=0 ./generic_test
|
||||||
|
|
@ -152,6 +152,7 @@ type StackMapBuilder struct {
|
||||||
b Bitmap
|
b Bitmap
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//go:nocheckptr
|
||||||
func (self *StackMapBuilder) Build() (p *StackMap) {
|
func (self *StackMapBuilder) Build() (p *StackMap) {
|
||||||
nb := len(self.b.B)
|
nb := len(self.b.B)
|
||||||
bm := mallocgc(_StackMapSize + uintptr(nb) - 1, byteType, false)
|
bm := mallocgc(_StackMapSize + uintptr(nb) - 1, byteType, false)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue