Bug 212323
Summary: | Go: allow FuncLauncher to modify current thread context | ||
---|---|---|---|
Product: | Tools | Reporter: | lmb |
Component: | libcap | Assignee: | Tools/Libcap default virtual assignee (tools_libcap) |
Status: | RESOLVED ANSWERED | ||
Severity: | enhancement | ||
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | any | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
lmb
2021-03-18 09:42:03 UTC
I just found https://bugzilla.kernel.org/show_bug.cgi?id=211919. From https://bugzilla.kernel.org/show_bug.cgi?id=211919#c12 > I guess I am still open to changes that make it more useful, but I'm not > really open to requiring users of libcap/cap to manually do > runtime.LockOSThread() to use its API. Fair enough! Feel free to close this issue in that case. https://bugzilla.kernel.org/show_bug.cgi?id=211919#c23 > I think this would mean we can't allow launchers to do syscalls in parallel, which will ultimately cause things to unnecessarily serialize on kernel calls. As it is the code allows two launchers to launch mostly in parallel. Does this mean I could invoke FuncLauncher, block in the callback and then invoke another Launcher? (This would still prevent modifying the whole process, but I can live with that.) I'm now using several FuncLaunchers to accomplish the same goal. Closing this issue. |