# HG changeset patch # User zhaixiang # Date 1535533172 -28800 # Node ID 58828a330030e8c50997a3dcca47055b7ea18c5c # Parent 59272e7eeeed0a067709c36007d14a6087737e58 #7406 [C1] Fix fatal error: Thread holding lock at safepoint that vm can block on: tty_lock issue Summary: Currently the MIPS FPU emulator uses eXecute Out of Line (XOL) on the stack to handle instructions in the delay slots of FPU branches. Because of this MIPS cannot have a non-executable stack. So just linking with -Wl,-z,noexecstack flag Reviewed-by: aoqi diff -r 59272e7eeeed -r 58828a330030 src/share/tools/hsdis/Makefile --- a/src/share/tools/hsdis/Makefile Wed Aug 29 15:23:26 2018 +0800 +++ b/src/share/tools/hsdis/Makefile Wed Aug 29 16:59:32 2018 +0800 @@ -94,6 +94,7 @@ endif CFLAGS += -O DLDFLAGS += -shared +DLDFLAGS += -Wl,-z,noexecstack LDFLAGS += -ldl OUTFLAGS += -o $@ else