We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package main import ( "fmt" "runtime" ) type Vertex struct { X, Y int } func (v *Vertex) Print() { fmt.Println("print", v) } type PrintInf interface { Print() } var uptr *Vertex var uptra *Vertex func main() { uptr = new(Vertex) uptra = uptr uptr.X = 1000 uptr.Y = 1000 uptr = new(Vertex) fmt.Println(uptr, uptra) runtime.GC() fmt.Println(uptr.X, uptr.Y, uptra) }
run result:
&{0 0} &{1000 1000} 0 0 &{1000 1000} &{0 0} &{1000 1000} 0 0 &{1000 2109488} &{0 0} &{1000 1000} 0 0 &{0 0} &{0 0} &{1000 1000} 0 0 &{1000 2109488} &{0 0} &{1000 1000} 0 0 &{0 0} &{0 0} &{1000 1000} 0 0 &{1000 2109488} &{0 0} &{1000 1000} 0 0 &{0 0} &{0 0} &{1000 1000} 0 0 &{0 0} &{0 0} &{1000 1000} 0 0 &{0 0} &{0 0} &{1000 1000} 0 0 &{0 0}
runtime gc variables in use
The text was updated successfully, but these errors were encountered:
not set gcdatamask and gcbssmask will lead to gcmarkroot failed.
Sorry, something went wrong.
d41c48c
No branches or pull requests
run result:
runtime gc variables in use
The text was updated successfully, but these errors were encountered: