From fc1029c74093fde14241ca664c9341fcc8be5fd3 Mon Sep 17 00:00:00 2001
From: Richard Carlsson
Date: Thu, 16 Apr 2015 14:30:55 +0200
Subject: Add module_info entry for native code
---
system/doc/reference_manual/modules.xml | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
(limited to 'system')
diff --git a/system/doc/reference_manual/modules.xml b/system/doc/reference_manual/modules.xml
index 39c739a146..76767ea686 100644
--- a/system/doc/reference_manual/modules.xml
+++ b/system/doc/reference_manual/modules.xml
@@ -246,7 +246,8 @@ behaviour_info(callbacks) -> Callbacks.
a list of {Key,Value} tuples with information about
the module. Currently, the list contain tuples with the following
Keys: module, attributes, compile,
- exports and md5. The order and number of tuples
+ exports, md5 and native.
+ The order and number of tuples
may change without prior notice.
@@ -302,6 +303,13 @@ behaviour_info(callbacks) -> Callbacks.
Returns a list of {Name,Arity} tuples with
all functions in the module.
+
+ native
+ -
+
Return true if the module has native compiled code.
+ Return false otherwise. In a system compiled without HiPE
+ support, the result is always false
+
--
cgit v1.2.3
From e47490f83e561a45cee9e8f72f1e1f91f19c60b7 Mon Sep 17 00:00:00 2001
From: Richard Carlsson
Date: Thu, 16 Apr 2015 11:28:22 +0200
Subject: Set module_info md5 for native modules properly
Use the md5 of the native code chunk instead of the Beam code md5.
---
system/doc/reference_manual/modules.xml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
(limited to 'system')
diff --git a/system/doc/reference_manual/modules.xml b/system/doc/reference_manual/modules.xml
index 76767ea686..d283c33910 100644
--- a/system/doc/reference_manual/modules.xml
+++ b/system/doc/reference_manual/modules.xml
@@ -289,7 +289,9 @@ behaviour_info(callbacks) -> Callbacks.
md5
-
-
Returns a binary representing the MD5 checksum of the module.
+ Returns a binary representing the MD5 checksum of the module.
+ If the module has native code loaded, this will be the MD5 of the
+ native code, not the BEAM bytecode.
exports
--
cgit v1.2.3