hotspot/src/os/windows/vm/os_windows.cpp
changeset 40383 1ebc8c5aed30
parent 40010 e32d5e545789
child 40655 9f644073d3a0
equal deleted inserted replaced
40382:7537c0ce2df3 40383:1ebc8c5aed30
   316 // RtlCaptureStackBackTrace Windows API may not exist prior to Windows XP.
   316 // RtlCaptureStackBackTrace Windows API may not exist prior to Windows XP.
   317 // So far, this method is only used by Native Memory Tracking, which is
   317 // So far, this method is only used by Native Memory Tracking, which is
   318 // only supported on Windows XP or later.
   318 // only supported on Windows XP or later.
   319 //
   319 //
   320 int os::get_native_stack(address* stack, int frames, int toSkip) {
   320 int os::get_native_stack(address* stack, int frames, int toSkip) {
   321 #ifdef _NMT_NOINLINE_
       
   322   toSkip++;
       
   323 #endif
       
   324   int captured = RtlCaptureStackBackTrace(toSkip + 1, frames, (PVOID*)stack, NULL);
   321   int captured = RtlCaptureStackBackTrace(toSkip + 1, frames, (PVOID*)stack, NULL);
   325   for (int index = captured; index < frames; index ++) {
   322   for (int index = captured; index < frames; index ++) {
   326     stack[index] = NULL;
   323     stack[index] = NULL;
   327   }
   324   }
   328   return captured;
   325   return captured;