--- a/hotspot/src/os/windows/vm/os_windows.cpp Thu Aug 31 17:06:10 2017 +0000
+++ b/hotspot/src/os/windows/vm/os_windows.cpp Thu Aug 31 20:26:53 2017 -0500
@@ -3506,22 +3506,6 @@
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(); }