src/os/windows/vm/os_windows.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File webrev Cdiff src/os/windows/vm/os_windows.cpp

src/os/windows/vm/os_windows.cpp

Print this page

        

*** 3589,3614 **** } // Otherwise leave the interrupted state alone return interrupted; } - // Get's a pc (hint) for a running thread. Currently used only for profiling. - ExtendedPC os::get_thread_pc(Thread* thread) { - CONTEXT context; - context.ContextFlags = CONTEXT_CONTROL; - HANDLE handle = thread->osthread()->thread_handle(); - if (GetThreadContext(handle, &context)) { - #ifdef _M_AMD64 - return ExtendedPC((address) context.Rip); - #else - return ExtendedPC((address) context.Eip); - #endif - } else { - return ExtendedPC(NULL); - } - } - // GetCurrentThreadId() returns DWORD intx os::current_thread_id() { return GetCurrentThreadId(); } static int _initial_pid = 0; --- 3589,3598 ----
src/os/windows/vm/os_windows.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File