mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: remove dead code
runtime.free has long gone. Change-Id: I058f69e6481b8fa008e1951c29724731a8a3d081 Reviewed-on: https://go-review.googlesource.com/16593 Reviewed-by: Austin Clements <austin@google.com> Run-TryBot: Austin Clements <austin@google.com>
This commit is contained in:
parent
b6c0934a9b
commit
ee0305e036
3 changed files with 6 additions and 11 deletions
|
|
@ -1143,7 +1143,7 @@ func setprofilebucket(p unsafe.Pointer, b *bucket) {
|
|||
|
||||
// Do whatever cleanup needs to be done to deallocate s. It has
|
||||
// already been unlinked from the MSpan specials list.
|
||||
func freespecial(s *special, p unsafe.Pointer, size uintptr, freed bool) {
|
||||
func freespecial(s *special, p unsafe.Pointer, size uintptr) {
|
||||
switch s.kind {
|
||||
case _KindSpecialFinalizer:
|
||||
sf := (*specialfinalizer)(unsafe.Pointer(s))
|
||||
|
|
@ -1153,7 +1153,7 @@ func freespecial(s *special, p unsafe.Pointer, size uintptr, freed bool) {
|
|||
unlock(&mheap_.speciallock)
|
||||
case _KindSpecialProfile:
|
||||
sp := (*specialprofile)(unsafe.Pointer(s))
|
||||
mProf_Free(sp.b, size, freed)
|
||||
mProf_Free(sp.b, size)
|
||||
lock(&mheap_.speciallock)
|
||||
fixAlloc_Free(&mheap_.specialprofilealloc, unsafe.Pointer(sp))
|
||||
unlock(&mheap_.speciallock)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue