aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/beam_emu.c
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2013-07-08 18:04:14 +0200
committerRickard Green <[email protected]>2013-07-09 14:39:58 +0200
commitb3b0c44ca3f1b87c719f782f09dd0331dbb1a351 (patch)
tree7aac7a292128d2830389cb522ed5143645988af2 /erts/emulator/beam/beam_emu.c
parentdbd97f2569af24ef395fa3d60bb2b00543296ce8 (diff)
downloadotp-b3b0c44ca3f1b87c719f782f09dd0331dbb1a351.tar.gz
otp-b3b0c44ca3f1b87c719f782f09dd0331dbb1a351.tar.bz2
otp-b3b0c44ca3f1b87c719f782f09dd0331dbb1a351.zip
Make information about use of jump table available via system_info BIF
erlang:system_info(beam_jump_table)
Diffstat (limited to 'erts/emulator/beam/beam_emu.c')
-rw-r--r--erts/emulator/beam/beam_emu.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/erts/emulator/beam/beam_emu.c b/erts/emulator/beam/beam_emu.c
index 5781009f58..da36c4437e 100644
--- a/erts/emulator/beam/beam_emu.c
+++ b/erts/emulator/beam/beam_emu.c
@@ -6256,3 +6256,12 @@ erts_current_reductions(Process *current, Process *p)
}
}
+int
+erts_beam_jump_table(void)
+{
+#if defined(NO_JUMP_TABLE)
+ return 0;
+#else
+ return 1;
+#endif
+}