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

Avoid unaligned access in emit_intX methods if it's unsupported

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 20, 21
    • 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.

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

              Created:
              Updated:
              Resolved: