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

Zero VM build broken with clang after JDK-8256726 due to strlen() is not a constexpr

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 16
    • None
    • hotspot
    • b27

    Description

      /Users/fool/df/jdk/src/hotspot/share/interpreter/zero/bytecodeInterpreter.cpp:1406:11: error: non-type template argument is not a constant expression
                ARRAY_LOADTO32(T_INT, jint, "%d", STACK_INT, 0);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /Users/fool/df/jdk/src/hotspot/share/interpreter/zero/bytecodeInterpreter.cpp:1389:11: note: expanded from macro 'ARRAY_LOADTO32'
                ARRAY_INTRO(-2); \
                ^~~~~~~~~~~~~~~
      /Users/fool/df/jdk/src/hotspot/share/interpreter/zero/bytecodeInterpreter.cpp:1374:7: note: expanded from macro 'ARRAY_INTRO'
            STATIC_ASSERT(add_len == strlen("Index out of bounds for length ")); \
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /Users/fool/df/jdk/src/hotspot/share/utilities/debug.hpp:190:28: note: expanded from macro 'STATIC_ASSERT'
          STATIC_ASSERT_FAILURE< (Cond) >::value ]
                                 ^~~~~~
      /Users/fool/df/jdk/src/hotspot/share/interpreter/zero/bytecodeInterpreter.cpp:1406:11: note: non-constexpr function 'strlen' cannot be used in a constant expression
      /Users/fool/df/jdk/src/hotspot/share/interpreter/zero/bytecodeInterpreter.cpp:1389:11: note: expanded from macro 'ARRAY_LOADTO32'
                ARRAY_INTRO(-2);

      Attachments

        Issue Links

          Activity

            People

              jiefu Jie Fu
              jiefu Jie Fu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: