[PATCH v3] Finish switch stack on SYSCALL instruction

2017-08-01 Thread HawxChen
This patch can achieve stack switching for each thread on SYSCALL instruction because each thread, which is created through class thread, has two stacks: _stack and _sys_stack. _syscall_stack is a newly created stack in this patch and used by its unique owner, a thread, during execution of system

[COMMIT osv master] runtime.c: avoid explicit "extern C" when header files are available

2017-08-01 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master runtime.c: avoid explicit "extern C" when header files are available Signed-off-by: Nadav Har'El --- diff --git a/runtime.cc b/runtime.cc --- a/runtime.cc +++ b/runtime.cc @@

[COMMIT osv master] libc: add functions required for libpython2.7.so

2017-08-01 Thread Commit Bot
From: Justin Cinkelj Committer: Nadav Har'El Branch: master libc: add functions required for libpython2.7.so When we try to reuse python from the build system (instead of compiling it from source), libpython2.7.so requires additional libc/glibc

Re: [PATCH] libc: add functions required for libpython2.7.so

2017-08-01 Thread Justin Cinkelj
On 08/01/2017 02:23 PM, Nadav Har'El wrote: On Tue, Aug 1, 2017 at 2:16 PM, Justin Cinkelj > wrote: When we try to reuse python from the build system (instead of compiling it from source), libpython2.7.so

[PATCH v2] libc: add functions required for libpython2.7.so

2017-08-01 Thread Justin Cinkelj
When we try to reuse python from the build system (instead of compiling it from source), libpython2.7.so requires additional libc/glibc symbols. It seems that (at least for most trivial python programs) those functions are not really called and can be implemented as stubs. The patch was prepared

Re: [PATCH] libc: add functions required for libpython2.7.so

2017-08-01 Thread Nadav Har'El
On Tue, Aug 1, 2017 at 3:33 PM, Justin Cinkelj wrote: > I should said first that I didn't really try to verify if implementations > are correct, and that I guess most of those functions are not called. > More or less, I just wanted to avoid "failed looking up symbol xyz"

Re: [PATCH] libc: add functions required for libpython2.7.so

2017-08-01 Thread Justin Cinkelj
I should said first that I didn't really try to verify if implementations are correct, and that I guess most of those functions are not called. More or less, I just wanted to avoid "failed looking up symbol xyz" error. I didn't even open any of the .c files (except wait4.c, because it didn't

[RFC PATCH 1/2] Revert "Add python2.7"

2017-08-01 Thread Justin Cinkelj
This reverts commit 9cdcf94d7d14d117bcbc790ff52287f3fb5ecf0d. --- python27/Makefile | 52 -- python27/copy-required-system-libraries.sh | 27 2 files changed, 79 deletions(-) delete mode 100644 python27/Makefile delete mode

Re: [PATCH v2] Finish switch stack on SYSCALL instruction

2017-08-01 Thread Nadav Har'El
Hi, thanks for the patch! Please take a look inline below for some review comments. Can you please say a few words on how you tested this patch? Namely, is there some Go test case which crashed before this patch, but is working successfully with this patch? One thing that worries me about the