aboutsummaryrefslogtreecommitdiffstats
path: root/java/debug.sh
diff options
context:
space:
mode:
authorPaul Eggert2024-02-13 09:54:51 -0800
committerPaul Eggert2024-02-13 11:20:33 -0800
commit473dac880105cf6055a185eb3b9764243f27697c (patch)
tree919fe869c06f6d927613675a7b71905fd5787685 /java/debug.sh
parent231af322b07447d87b4c250aa601219a4005d9a5 (diff)
downloademacs-473dac880105cf6055a185eb3b9764243f27697c.tar.gz
emacs-473dac880105cf6055a185eb3b9764243f27697c.zip
Remove lisp_h_XCONS etc
When configured with --enable-checking and compiled with gcc -O0, these macros evaluated arguments multiple times, which made it too easy to mistakenly write code that behaves differently when debugging. This patch does not affect performance in normal builds. In --enable-checking builds with gcc -O0 it slows down my usual benchmark (remove all '*.elc’ files and then 'make') by 4.4%. I hope that’s good enough; if not I can complicate the macros to tune better for debugging builds. * src/lisp.h (lisp_h_SET_SYMBOL_VAL, lisp_h_SYMBOL_VAL) (lisp_h_XCONS): Remove, moving each definiens to the corresponding inline function. All uses removed.
Diffstat (limited to 'java/debug.sh')
0 files changed, 0 insertions, 0 deletions