Skip to content

Commit

Permalink
fix tls hook
Browse files Browse the repository at this point in the history
  • Loading branch information
xhd2015 committed May 9, 2024
1 parent 83fdf34 commit 68ff63b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions cmd/xgo/runtime_gen/core/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
)

const VERSION = "1.0.30"
const REVISION = "a6ed1f5d4adc882e06ad3da0530ed5e3733c6169+1"
const NUMBER = 208
const REVISION = "83fdf348a92806bbdc0b6746fc7d55ae1671dfab+1"
const NUMBER = 209

// these fields will be filled by compiler
const XGO_VERSION = ""
Expand Down
2 changes: 1 addition & 1 deletion cmd/xgo/runtime_gen/tls/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func init() {

__xgo_link_on_gonewproc(func(newg uintptr) {
// cannot lock/unlock on sys stack
if __xgo_link_is_system_stack() && false {
if __xgo_link_is_system_stack() {
return
}

Expand Down
4 changes: 2 additions & 2 deletions cmd/xgo/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import "fmt"

const VERSION = "1.0.30"
const REVISION = "a6ed1f5d4adc882e06ad3da0530ed5e3733c6169+1"
const NUMBER = 208
const REVISION = "83fdf348a92806bbdc0b6746fc7d55ae1671dfab+1"
const NUMBER = 209

func getRevision() string {
revSuffix := ""
Expand Down
4 changes: 2 additions & 2 deletions runtime/core/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
)

const VERSION = "1.0.30"
const REVISION = "a6ed1f5d4adc882e06ad3da0530ed5e3733c6169+1"
const NUMBER = 208
const REVISION = "83fdf348a92806bbdc0b6746fc7d55ae1671dfab+1"
const NUMBER = 209

// these fields will be filled by compiler
const XGO_VERSION = ""
Expand Down
2 changes: 1 addition & 1 deletion runtime/tls/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func init() {

__xgo_link_on_gonewproc(func(newg uintptr) {
// cannot lock/unlock on sys stack
if __xgo_link_is_system_stack() && false {
if __xgo_link_is_system_stack() {
return
}

Expand Down

0 comments on commit 68ff63b

Please sign in to comment.