aboutsummaryrefslogtreecommitdiffstats
path: root/erts/doc
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2018-07-18 12:21:42 +0200
committerGitHub <[email protected]>2018-07-18 12:21:42 +0200
commit64d7d7ab81e3c2163301a77969c75c6b73804d8b (patch)
tree88edc95a533a22ae5bf19a707c50817aa26de39c /erts/doc
parent0e9c319480d9cfb778b654bf2cd71e7bd31464f9 (diff)
parentf31db22102bde44c6ee17bc756bdeb109855acea (diff)
downloadotp-64d7d7ab81e3c2163301a77969c75c6b73804d8b.tar.gz
otp-64d7d7ab81e3c2163301a77969c75c6b73804d8b.tar.bz2
otp-64d7d7ab81e3c2163301a77969c75c6b73804d8b.zip
Merge pull request #1812 from michalmuskala/mm/make-fun-loader
Optimise creation of anonymous functions
Diffstat (limited to 'erts/doc')
-rw-r--r--erts/doc/src/erlang.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml
index 8e014c3010..bd33e35603 100644
--- a/erts/doc/src/erlang.xml
+++ b/erts/doc/src/erlang.xml
@@ -1751,6 +1751,10 @@ true</pre>
<item>
<p><c>Pid</c> is the process identifier of the process
that originally created the fun.</p>
+ <p>It might point to the <c>init</c> process if the
+ <c>Fun</c> was statically allocated when module was
+ loaded (this optimisation is performed for local
+ functions that do not capture the enviornment).</p>
</item>
<tag><c>{index, Index}</c></tag>
<item>