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

Uninitialized variable after JDK-8257513

XMLWordPrintable

    • b04

        Backporting JDK-8257513 to JDK 11u triggered the following build failure:

        [2021-01-04T09:54:55,894Z] workspace/open/src/hotspot/share/opto/compile.cpp: In member function 'bool Compile::ConstantTable::emit(CodeBuffer&) const':
        [2021-01-04T09:54:55,894Z] workspace/open/src/hotspot/share/opto/compile.cpp:4136:83: error: 'last_addr' may be used uninitialized in this function [-Werror=maybe-uninitialized]
        [2021-01-04T09:54:55,894Z] address new_constant_addr = last_addr - ((n->outcnt() - 1) * sizeof(address));

        Not sure why this is not a problem in mainline. Maybe we build with different flags.

              chagedorn Christian Hagedorn
              thartmann Tobias Hartmann
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: