> src/pkg/runtime/linux/amd64/sys.s:50: SYSCALL > On x86_64 GNU/Linux it's more efficient to use the VDSO call. ...
15 years, 1 month ago
(2010-02-06 20:38:57 UTC)
#3
> src/pkg/runtime/linux/amd64/sys.s:50: SYSCALL
> On x86_64 GNU/Linux it's more efficient to use the VDSO call. Just
> write something like
> LEAQ 8(SP), DI
> MOVQ $0xffffffffff600000, AX
> CALLQ *AX
I'm going to leave this for another CL, but that's very interesting.
> src/pkg/runtime/malloc.cgo:251: return (byte*)v;
> What's the point of this cast? The function return type is void* and v
> is already void*.
Sorry, dreg from experiments - was temporarily return (byte*)v+8;
Russ
On Sat, Feb 6, 2010 at 12:38, Russ Cox <rsc@golang.org> wrote: >> src/pkg/runtime/linux/amd64/sys.s:50: SYSCALL >> ...
15 years, 1 month ago
(2010-02-06 22:46:27 UTC)
#4
On Sat, Feb 6, 2010 at 12:38, Russ Cox <rsc@golang.org> wrote:
>> src/pkg/runtime/linux/amd64/sys.s:50: SYSCALL
>> On x86_64 GNU/Linux it's more efficient to use the VDSO call. Just
>> write something like
>> LEAQ 8(SP), DI
>> MOVQ $0xffffffffff600000, AX
>> CALLQ *AX
>
> I'm going to leave this for another CL, but that's very interesting.
I misunderstood: I thought this applied to all system calls
but on further investigation I see that it's just for gettimeofday.
Will do.
Russ
Issue 204053: code review 204053: runtime: instrument malloc + garbage collector.
(Closed)
Created 15 years, 1 month ago by rsc
Modified 15 years, 1 month ago
Reviewers:
Base URL:
Comments: 2