Skip to content
Snippets Groups Projects
  • Avi Kivity's avatar
    4e7d8cce
    runtime: implement __cxa_guard_acquire() · 4e7d8cce
    Avi Kivity authored
    Otherwise, static constructors in functions are never called.  This
    manifested itself in the jit generating wrong code when compiling a function,
    as the register calling convention was not initialized, and the jvm tried
    to load all method arguments into %rax.
    4e7d8cce
    History
    runtime: implement __cxa_guard_acquire()
    Avi Kivity authored
    Otherwise, static constructors in functions are never called.  This
    manifested itself in the jit generating wrong code when compiling a function,
    as the register calling convention was not initialized, and the jvm tried
    to load all method arguments into %rax.