Skip to content

Commit

Permalink
fix: add nocheckptr directive (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
AsterDY authored Feb 20, 2023
1 parent a978cdb commit e60b954
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/push-check-go118.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
- name: Unit Test
run: |
GOMAXPROCS=4 go test -v -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 ./...
GOMAXPROCS=4 go test -v -race -gcflags=-d=checkptr=0 ./external_jsonlib_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
1 change: 1 addition & 0 deletions internal/rt/stackmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ type StackMapBuilder struct {
b Bitmap
}

//go:nocheckptr
func (self *StackMapBuilder) Build() (p *StackMap) {
nb := len(self.b.B)
bm := mallocgc(_StackMapSize + uintptr(nb) - 1, byteType, false)
Expand Down

0 comments on commit e60b954

Please sign in to comment.