aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/runtime/malloc.go
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2018-08-24 18:15:04 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2018-08-24 18:15:04 +0000
commit1d29bb0408506480e13afeca2ec6b8611e6a0ce7 (patch)
tree1aba1d63f8e8f960b6130e1f8a595548106b1403 /libgo/go/runtime/malloc.go
parent9ca2ac699ab2eee4ef6a2904426fa38f58af5a0b (diff)
downloadgcc-1d29bb0408506480e13afeca2ec6b8611e6a0ce7.zip
gcc-1d29bb0408506480e13afeca2ec6b8611e6a0ce7.tar.gz
gcc-1d29bb0408506480e13afeca2ec6b8611e6a0ce7.tar.bz2
runtime: remove the dummy arg of getcallersp
This is a port of https://golang.org/cl/109596 to the gofrontend, in preparation for updating libgo to 1.11. Original CL description: getcallersp is intrinsified, and so the dummy arg is no longer needed. Remove it, as well as a few dummy args that are solely to feed getcallersp. Reviewed-on: https://go-review.googlesource.com/131116 From-SVN: r263840
Diffstat (limited to 'libgo/go/runtime/malloc.go')
-rw-r--r--libgo/go/runtime/malloc.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/libgo/go/runtime/malloc.go b/libgo/go/runtime/malloc.go
index c8d5284..523989e 100644
--- a/libgo/go/runtime/malloc.go
+++ b/libgo/go/runtime/malloc.go
@@ -621,7 +621,7 @@ func mallocgc(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
// callback.
incallback := false
if gomcache() == nil && getg().m.ncgo > 0 {
- exitsyscall(0)
+ exitsyscall()
incallback = true
}
@@ -709,7 +709,7 @@ func mallocgc(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
mp.mallocing = 0
releasem(mp)
if incallback {
- entersyscall(0)
+ entersyscall()
}
return x
}
@@ -835,7 +835,7 @@ func mallocgc(size uintptr, typ *_type, needzero bool) unsafe.Pointer {
}
if incallback {
- entersyscall(0)
+ entersyscall()
}
return x