/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/linknameasm.dir/x.go
26 строк
451 B
Cherry Mui
cmd/compile: generate args_stackmap for ABI0 assembly func regardless of linkname
07 июн 2024, 18:22
07 июн 2024, 18:22
0b72631
Код
Авторство
О чём код?
// Copyright 2024 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test that a linkname applied on an assembly declaration // does not affect stack map generation. package main import ( "runtime" _ "unsafe" ) //go:linkname asm func asm(*int) func main() { x := new(int) asm(x) } // called from asm func callback() { runtime.GC() // scan stack }