mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-08 04:53:42 +00:00
Replace compiler hack for sync package with //go:linkname
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package runtime
|
||||
|
||||
// This file contains support code for the sync package.
|
||||
|
||||
//go:linkname registerPoolCleanup sync.runtime_registerPoolCleanup
|
||||
func registerPoolCleanup(cleanup func()) {
|
||||
// Ignore.
|
||||
}
|
||||
|
||||
//go:linkname notifyListCheck sync.runtime_notifyListCheck
|
||||
func notifyListCheck(size uintptr) {
|
||||
// Ignore.
|
||||
}
|
||||
Reference in New Issue
Block a user