Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8206454

[8u] os::current_stack_pointer() fails to compile on later Windows compilers (warning C4172: returning address of local variable)

XMLWordPrintable

    • b02

        Using a later Windows compiler such as VS2017 on 8u, we have the compile error:

        ...\hotspot\src\os_cpu\windows_x86\vm\os_windows_x86.cpp(460) : warning C4172: returning address of local variable or temporary: dummy

        We really do want to return the local variable address, we can add a #pragma to avoid this error.

              kevinw Kevin Walls
              kevinw Kevin Walls
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: