< prev index next >

src/hotspot/os_cpu/windows_x86/os_windows_x86.cpp

Print this page
rev 54257 : [mq]: 8221408-win32-hotspot-buildfixes

@@ -463,18 +463,22 @@
 frame os::get_sender_for_C_frame(frame* fr) {
   return frame(fr->sender_sp(), fr->link(), fr->sender_pc());
 }
 
 #ifndef AMD64
+// Ignore "C4172: returning address of local variable or temporary"
+#pragma warning(push)
+#pragma warning(disable : 4172)
 // Returns an estimate of the current stack pointer. Result must be guaranteed
 // to point into the calling threads stack, and be no lower than the current
 // stack pointer.
 address os::current_stack_pointer() {
   int dummy;
   address sp = (address)&dummy;
   return sp;
 }
+#pragma warning(pop)
 #else
 // Returns the current stack pointer. Accurate value needed for
 // os::verify_stack_alignment().
 address os::current_stack_pointer() {
   typedef address get_sp_func();
< prev index next >