Skip to content

Commit

Permalink
Minor fixes in calls.asciidoc
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrejbr authored and happi committed Apr 9, 2017
1 parent 2037617 commit ff71f47
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions calls.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,18 @@ Shouldn't Code Loading come before Hot Code Loading? Or are the two topics not r


In the Erlang Runtime System the code loading is handled by the
code server. The code server will call the lover level BIFs in the
code server. The code server will call the lower level BIFs in the
+erlang+ module for the actual loading. But the code server also
determines the purging policy.

The runtime system can keep two versions of each module, a _current_
version and an _old_ version. All fully qualified (remote) calls goes
version and an _old_ version. All fully qualified (remote) calls go
to the current version. Local calls in the old version and return
addresses on the stack can still go to the old version.

If a third version of a module is loaded and there still are processes
running (have pointers on the stack to) old code the code server
will kill does processes and purge the old code. Then the current
If a third version of a module is loaded and there are still processes
running (have pointers on the stack to) the code server
will kill those processes and purge the old code. Then the current
version will become old and the third version will be loaded as the
current version.

Expand Down

0 comments on commit ff71f47

Please sign in to comment.