gecko-dev/mozglue/misc
Xidorn Quan 75cc8c371b Bug 1452204 part 2 - Use RtlCaptureContext to capture context for current thread and remove walker thread. r=glandium
GetThreadContext() returns a context pointing to its own frame when it
gets called with the current thread handle. That frame can go away after
it returns. This patch instead uses RtlCaptureContext(), which captures
the context of its caller, when walking the current thread.

In the past, we also used a walker thread when nullptr is passed in for
aThread, but the check doesn't cover all the cases, and having another
thread is apparently more complicated than this approach.

MozReview-Commit-ID: 3TAatDc9BLh

--HG--
extra : rebase_source : 7978cce48b8939a723cd5ccafe86d3f7aca6d3ac
2018-06-04 19:23:27 +10:00
..
interceptor Bug 1466168: Remove mozilla::Forward in favor of std::forward. r=froydnj 2018-06-02 09:33:26 +02:00
AutoProfilerLabel.cpp Bug 1461555 - Rename PseudoStack to ProfilingStack. r=njn 2018-05-15 01:03:11 -04:00
AutoProfilerLabel.h Bug 1461555 - Rename ProfileEntry to ProfilingStackFrame. r=njn 2018-05-15 01:14:03 -04:00
ConditionVariable_posix.cpp Bug 1437167 - Part 1: Stop using PRIntervalTime as the argument to CondVar::Wait and Monitor::Wait, r=mstange, r=froydnj 2018-04-10 17:49:47 -04:00
ConditionVariable_windows.cpp Bug 1364624 - Part 2: Switch from CRITICALSECTION to SRWLOCK. r=froydnj 2018-04-27 16:48:47 -07:00
DynamicallyLinkedFunctionPtr.h Bug 1466168: Remove mozilla::Forward in favor of std::forward. r=froydnj 2018-06-02 09:33:26 +02:00
MutexPlatformData_posix.h
MutexPlatformData_windows.h Bug 1364624 - Part 2: Switch from CRITICALSECTION to SRWLOCK. r=froydnj 2018-04-27 16:48:47 -07:00
Mutex_posix.cpp Bug 1457882 - Emulate glibc adaptive mutexes on OSX r=nfroyd 2018-05-02 15:11:53 +01:00
Mutex_windows.cpp Bug 1364624 - Part 2: Switch from CRITICALSECTION to SRWLOCK. r=froydnj 2018-04-27 16:48:47 -07:00
PlatformConditionVariable.h Bug 1437167 - Part 1: Stop using PRIntervalTime as the argument to CondVar::Wait and Monitor::Wait, r=mstange, r=froydnj 2018-04-10 17:49:47 -04:00
PlatformMutex.h Bug 1457882 - Emulate glibc adaptive mutexes on OSX r=nfroyd 2018-05-02 15:11:53 +01:00
Printf.cpp Bug 1334276 - add Printf unit tests; r=froydnj 2017-05-08 13:49:48 -06:00
Printf.h Bug 1384233 - Update documentation for the %I format specifier in Printf.h. r=froydnj 2017-07-26 16:22:58 -04:00
StackWalk.cpp Bug 1452204 part 2 - Use RtlCaptureContext to capture context for current thread and remove walker thread. r=glandium 2018-06-04 19:23:27 +10:00
StackWalk.h Bug 1384814 - Remove critical address machinery from Mac implementation of MozStackWalk(). r=glandium. 2017-10-03 13:53:14 +11:00
StackWalk_windows.h Bug 1359507: Replace the stack walk workaround lock with an atomic counter of suppressions. r=mstange,froydnj 2017-05-03 12:10:48 -04:00
TimeStamp.cpp
TimeStamp.h Bug 1456672 - Add a brief note that we prefer to pass TimeStamp objects by value. r=heycam,kats DONTBUILD 2018-04-26 14:53:23 +09:00
TimeStamp_darwin.cpp
TimeStamp_posix.cpp Bug 1381253 - Remove redundant control flow declarations rs=ehsan 2017-07-15 19:03:04 +02:00
TimeStamp_windows.cpp Bug 1406386 - Control how TimeStamp works on Windows via and envvar. r=froydnj 2017-10-06 09:16:00 -04:00
TimeStamp_windows.h Bug 1450959 - TimeStamp class doesn't need to be friend of StartupTimelineRecordExternal, r=glandium 2018-04-05 06:44:31 +02:00
WindowsMapRemoteView.cpp Bug 1462727 - Make WindowsMapRemoteView.cpp work with April 2018 Update SDK. r=aklotz 2018-05-19 02:12:14 +09:00
WindowsMapRemoteView.h Bug 1451511: Add cross-process function hooking to DLL interceptor; r=handyman 2018-04-04 16:31:43 -06:00
moz.build Bug 1451511: Add cross-process function hooking to DLL interceptor; r=handyman 2018-04-04 16:31:43 -06:00
nsWindowsDllInterceptor.h Bug 1466168: Remove mozilla::Forward in favor of std::forward. r=froydnj 2018-06-02 09:33:26 +02:00