use "rep; nop" instead of "pause" on Solaris/amd64

This commit is contained in:
Igor Sysoev 2010-03-26 13:38:41 +00:00
parent b45498c3de
commit f59ae65fa4

View File

@ -31,7 +31,12 @@
/ ngx_cpu_pause() / ngx_cpu_pause()
/
/ the "rep; nop" is used instead of "pause" to avoid the "[ PAUSE ]" hardware
/ capability added by linker because Solaris/amd64 does not know about it:
/
/ ld.so.1: nginx: fatal: hardware capability unsupported: 0x2000 [ PAUSE ]
.inline ngx_cpu_pause,0 .inline ngx_cpu_pause,0
pause rep; nop
.end .end