• Martin Storsjo's avatar
    kernel32: Add a special case to EnumProcessModules for the local process. · fbda8db3
    Martin Storsjo authored
    LLVM's libunwind uses EnumProcessModules for locating .eh_frame
    sections when unwinding dwarf exceptions (used on i686).
    
    When running wine in docker (without adding custom additional
    permissions), EnumProcessModules currently fails as it uses
    ReadProcessMemory, which requires the SYS_PTRACE capability.
    
    The current implementation also is slower than necessary (by a
    couple orders of magnituide), for accessing the current process.
    Currently, unwinding 10000 exception throws with libunwind on i686
    takes 24 seconds when run in wine, while it runs in less than 0.1
    second with this patch.
    Signed-off-by: 's avatarMartin Storsjo <martin@martin.st>
    Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
    fbda8db3
Name
Last commit
Last update
..
nls Loading commit data...
tests Loading commit data...
Makefile.in Loading commit data...
actctx.c Loading commit data...
atom.c Loading commit data...
comm.c Loading commit data...
computername.c Loading commit data...
console.c Loading commit data...
console_private.h Loading commit data...
cpu.c Loading commit data...
debugger.c Loading commit data...
editline.c Loading commit data...
environ.c Loading commit data...
file.c Loading commit data...
format_msg.c Loading commit data...
heap.c Loading commit data...
kernel32.spec Loading commit data...
kernel_main.c Loading commit data...
kernel_private.h Loading commit data...
lcformat.c Loading commit data...
locale.c Loading commit data...
locale_rc.rc Loading commit data...
lzexpand.c Loading commit data...
module.c Loading commit data...
nameprep.c Loading commit data...
oldconfig.c Loading commit data...
path.c Loading commit data...
powermgnt.c Loading commit data...
process.c Loading commit data...
profile.c Loading commit data...
resource.c Loading commit data...
string.c Loading commit data...
sync.c Loading commit data...
tape.c Loading commit data...
term.c Loading commit data...
thread.c Loading commit data...
time.c Loading commit data...
toolhelp.c Loading commit data...
version.c Loading commit data...
version.rc Loading commit data...
virtual.c Loading commit data...
volume.c Loading commit data...
wctype.c Loading commit data...
wer.c Loading commit data...
winerror.mc Loading commit data...