Why does -Xrs reduce performance

后端 未结 2 926
萌比男神i
萌比男神i 2021-02-19 16:56

From IBM:

-Xrs

Disables signal handling in the JVM.

-Xrs

Setting -Xrs prevents the J

2条回答
  •  独厮守ぢ
    2021-02-19 17:42

    In addition to safepoints mentioned by @chrylis segfault handlers are also used for other clever optimization tricks such as implicit null pointer checking (at least they're on hotspot). If profiles show that a null-checking code path is rarely triggered it's optimized out and the unlikely case is then covered by the signal handler instead.

    Such an optimization cannot be performed without installing a custom signal handler.

提交回复
热议问题