Replace compiler hack for sync package with //go:linkname

This commit is contained in:
Ayke van Laethem
2018-08-30 22:38:21 +02:00
parent 74bd378c29
commit 674b506bb2
2 changed files with 13 additions and 5 deletions
+13
View File
@@ -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.
}