aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2013-08-28 20:55:16 +0200
committerSverker Eriksson <[email protected]>2013-08-28 20:55:16 +0200
commit43b1f1755b1ca9003d88655bfebe5ca9e46cfbf6 (patch)
tree026b326cf03adf868b26142ea0a0885b001d4140
parent24a141833ad33ff889b07dce83e4f046a9a0a775 (diff)
downloadotp-43b1f1755b1ca9003d88655bfebe5ca9e46cfbf6.tar.gz
otp-43b1f1755b1ca9003d88655bfebe5ca9e46cfbf6.tar.bz2
otp-43b1f1755b1ca9003d88655bfebe5ca9e46cfbf6.zip
erts: Remove unused constant DRIVER_TAB_SIZE
-rwxr-xr-xerts/emulator/beam/global.h5
-rwxr-xr-xerts/emulator/utils/make_driver_tab6
2 files changed, 3 insertions, 8 deletions
diff --git a/erts/emulator/beam/global.h b/erts/emulator/beam/global.h
index ef34f5b221..e3a0487aeb 100755
--- a/erts/emulator/beam/global.h
+++ b/erts/emulator/beam/global.h
@@ -186,11 +186,6 @@ extern void erts_ddll_remove_monitor(Process *p,
extern Eterm erts_ddll_monitor_driver(Process *p,
Eterm description,
ErtsProcLocks plocks);
-/*
- * Max no. of drivers (linked in and dynamically loaded). Each table
- * entry uses 4 bytes.
- */
-#define DRIVER_TAB_SIZE 32
/*
** Just like the driver binary but with initial flags
diff --git a/erts/emulator/utils/make_driver_tab b/erts/emulator/utils/make_driver_tab
index 3eedef21a7..0e6793d2af 100755
--- a/erts/emulator/utils/make_driver_tab
+++ b/erts/emulator/utils/make_driver_tab
@@ -2,7 +2,7 @@
#
# %CopyrightBegin%
#
-# Copyright Ericsson AB 1999-2009. All Rights Reserved.
+# Copyright Ericsson AB 1999-2013. All Rights Reserved.
#
# The contents of this file are subject to the Erlang Public License,
# Version 1.1, (the "License"); you may not use this file except in
@@ -88,7 +88,7 @@ foreach (@static_drivers) {
}
# The array itself
-print "\nErlDrvEntry *driver_tab[DRIVER_TAB_SIZE] =\n{\n";
+print "\nErlDrvEntry *driver_tab[] =\n{\n";
foreach (@emu_drivers) {
print " &${_}driver_entry,\n";
@@ -126,7 +126,7 @@ foreach (@nifs) {
}
# The array itself
-print "static ErtsStaticNifEntry static_nif_tab[DRIVER_TAB_SIZE] =\n{\n";
+print "static ErtsStaticNifEntry static_nif_tab[] =\n{\n";
foreach (@nifs) {
my $d = ${_};