runtime: always pass type to mallocgc when allocating scannable memory
We allocate scannable memory w/o type only in few places in runtime.
All these cases are not-performance critical (e.g. G or finq args buffer),
and in long term they all need to go away.
It's not worth it to have special code for this case in mallocgc.
So use special fake "notype" type for such allocations.
Hello golang-codereviews@googlegroups.com (cc: khr@golang.org, rlh@golang.org, rsc@golang.org), I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
10 years, 8 months ago
(2014-08-18 14:00:54 UTC)
#1
*** Submitted as https://code.google.com/p/go/source/detail?r=6b52ebfb804e *** runtime: always pass type to mallocgc when allocating scannable memory ...
10 years, 8 months ago
(2014-08-19 11:59:47 UTC)
#4
*** Submitted as https://code.google.com/p/go/source/detail?r=6b52ebfb804e ***
runtime: always pass type to mallocgc when allocating scannable memory
We allocate scannable memory w/o type only in few places in runtime.
All these cases are not-performance critical (e.g. G or finq args buffer),
and in long term they all need to go away.
It's not worth it to have special code for this case in mallocgc.
So use special fake "notype" type for such allocations.
LGTM=khr
R=golang-codereviews, khr
CC=golang-codereviews, rlh, rsc
https://codereview.appspot.com/127450044
Issue 127450044: code review 127450044: runtime: always pass type to mallocgc when allocating s...
(Closed)
Created 10 years, 8 months ago by dvyukov
Modified 10 years, 8 months ago
Reviewers:
Base URL:
Comments: 2