]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/runtime/chan.go
[dev.cc] all: merge default (e4ab8f908aac) into dev.cc
[gostls13.git] / src / runtime / chan.go
index 0eb87df74f759dc81ce3ab804f152754de541adc..330422ad0908d6ab5391e8dd0e8e83ca4a94539b 100644 (file)
@@ -26,7 +26,7 @@ func makechan(t *chantype, size int64) *hchan {
        if hchanSize%maxAlign != 0 || elem.align > maxAlign {
                gothrow("makechan: bad alignment")
        }
-       if size < 0 || int64(uintptr(size)) != size || (elem.size > 0 && uintptr(size) > (maxmem-hchanSize)/uintptr(elem.size)) {
+       if size < 0 || int64(uintptr(size)) != size || (elem.size > 0 && uintptr(size) > (_MaxMem-hchanSize)/uintptr(elem.size)) {
                panic("makechan: size out of range")
        }