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

Details

    • b02

    Backports

      Description

        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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: