aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/global.h
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-01-21 19:53:59 +0100
committerSverker Eriksson <[email protected]>2016-01-21 20:11:04 +0100
commit66a80a7ab735a22249ffbbb7c88eccebba906194 (patch)
tree955314b6651ecbb9be2c43bdbd5037205bb52dc5 /erts/emulator/beam/global.h
parent632eb0ee2fbad692255ca2b1d0c3300fd0b6e492 (diff)
downloadotp-66a80a7ab735a22249ffbbb7c88eccebba906194.tar.gz
otp-66a80a7ab735a22249ffbbb7c88eccebba906194.tar.bz2
otp-66a80a7ab735a22249ffbbb7c88eccebba906194.zip
erts: Add checks for thread safe allocation
Assert thread unsafe allocator is only created on non-smp and only called by the main thread. Removed test of unsafe allocator in custom thread.
Diffstat (limited to 'erts/emulator/beam/global.h')
-rw-r--r--erts/emulator/beam/global.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/emulator/beam/global.h b/erts/emulator/beam/global.h
index 3f5925765d..ad9fdfc878 100644
--- a/erts/emulator/beam/global.h
+++ b/erts/emulator/beam/global.h
@@ -1168,6 +1168,9 @@ extern ErtsModifiedTimings erts_modified_timings[];
extern int erts_no_line_info;
extern Eterm erts_error_logger_warnings;
extern int erts_initialized;
+#if defined(USE_THREADS) && !defined(ERTS_SMP)
+extern erts_tid_t erts_main_thread;
+#endif
extern int erts_compat_rel;
extern int erts_use_sender_punish;
void erts_short_init(void);