Commit 81fadf1c by Ian Lance Taylor

runtime: mark memequal and memclrNoHeapPointers nosplit

    
    They are wrappers of libc functions that use no stack. Mark them
    nosplit so the linker won't patch it to call __morestack_non_split.
    
    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/183629

From-SVN: r272633
parent 33437116
89b442a0100286ee569b8d2562ce1b2ea602f7e7 a857aad2f3994e6fa42a6fc65330e65d209597a0
The first line of this file holds the git revision number of the last The first line of this file holds the git revision number of the last
merge done from the gofrontend repository. merge done from the gofrontend repository.
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
#include "runtime.h" #include "runtime.h"
void memclrNoHeapPointers(void *, uintptr) void memclrNoHeapPointers(void *, uintptr)
__asm__ (GOSYM_PREFIX "runtime.memclrNoHeapPointers"); __asm__ (GOSYM_PREFIX "runtime.memclrNoHeapPointers")
__attribute__ ((no_split_stack));
void void
memclrNoHeapPointers (void *p1, uintptr len) memclrNoHeapPointers (void *p1, uintptr len)
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
#include "runtime.h" #include "runtime.h"
_Bool memequal (void *, void *, uintptr) _Bool memequal (void *, void *, uintptr)
__asm__ (GOSYM_PREFIX "runtime.memequal"); __asm__ (GOSYM_PREFIX "runtime.memequal")
__attribute__ ((no_split_stack));
_Bool _Bool
memequal (void *p1, void *p2, uintptr len) memequal (void *p1, void *p2, uintptr len)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment