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

Illegal instructions in generated code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 26
    • hotspot
    • None
    • x86
    • windows

      Running Kitchensink locally, I am surprised to see the amount of illegal instruction exceptions.

      Here is an example of a typical site (its an intrinsic so it might just be related to that, but there are other sites as well. Looks like the call is not properly aligned or padded).

      Illegal instruction - code c000001d (first chance)
      First chance exceptions are reported before any exception handling.
      This exception may be expected and handled.
      000001fc`e3a5545c 0f ???

      ...

      000001fc`e3a5541c 41817f2005000000 cmp dword ptr [r15+20h],5
      000001fc`e3a55424 0f8533010000 jne 000001fc`e3a5555d
      000001fc`e3a5542a 488bea mov rbp,rdx
      000001fc`e3a5542d 49ba1a1bb18cf97f0000 mov r10,offset jvm!JvmtiVTMSTransitionDisabler::_VTMS_notify_jvmti_events (00007ff9`8cb11b1a)
      000001fc`e3a55437 450fb61a movzx r11d,byte ptr [r10]
      000001fc`e3a5543b 4183fb01 cmp r11d,1
      000001fc`e3a5543f 746d je 000001fc`e3a554ae
      0:093> u
      000001fc`e3a55441 41c6877305000001 mov byte ptr [r15+573h],1
      000001fc`e3a55449 c6423b01 mov byte ptr [rdx+3Bh],1
      000001fc`e3a5544d 48ba801a090404000000 mov rdx,404091A80h
      000001fc`e3a55457 e8a4fcffff call 000001fc`e3a55100
      000001fc`e3a5545c 0f ??? <<----------------------------- ?
      000001fc`e3a5545d ff00 inc dword ptr [rax]
      000001fc`e3a5545f a954010000 test eax,154h
      000001fc`e3a55464 890424 mov dword ptr [rsp],eax
      0:093>
      000001fc`e3a55467 49ba1a1bb18cf97f0000 mov r10,offset jvm!JvmtiVTMSTransitionDisabler::_VTMS_notify_jvmti_events (00007ff9`8cb11b1a)
      000001fc`e3a55471 450fb612 movzx r10d,byte ptr [r10]
      000001fc`e3a55475 4183fa01 cmp r10d,1
      000001fc`e3a55479 741e je 000001fc`e3a55499

            Unassigned Unassigned
            mgronlun Markus Grönlund
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: