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

Change windows x64 implementation of os::current_stack_pointer()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • hotspot
    • None
    • x86
    • windows

      The current implementation of os::current_stack_pointer() on windows x64 uses a code stub to read the stack pointer. This means that os::current_stack_pointer() may not be called early on in the bootstrapping. This prevents unhandled oops from being enabled early on.

      However, there is an MSVC intrinsic that provides the same functionality without the need to use stubs: _AddressOfReturnAddress()
      By changing this implementation, we should be able to call os::current_stack_pointer() early on.

            eosterlund Erik Ă–sterlund
            eosterlund Erik Ă–sterlund
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: