Avoid unaligned access in emit_intX methods if it's unsupported

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 21
    • Affects Version/s: 20, 21
    • Component/s: hotspot
    • b20
    • generic
    • generic

      emit_int16/32/64 use direct memory access in shared code, this may result in unaligned memory stores on platforms where unaligned memory access is disabled by default:
      risc-v, arm32
      lets use put_native in emit_intXX methods, this will affect next platforms as well:
      ppc and x86
      we will use properly aligned memory stores in put_native_XX methods only if it is required by global variables.

            Assignee:
            Vladimir Kempik
            Reporter:
            Vladimir Kempik
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: