Skip to content

Commit

Permalink
Merge branch 'josevalim/fix-code-server-deadlock/PR-8744/OTP-19305' i…
Browse files Browse the repository at this point in the history
…nto maint

OTP-19305

* josevalim/fix-code-server-deadlock/PR-8744/OTP-19305:
  Refactor code server to use a single queue
  • Loading branch information
kikofernandez committed Oct 25, 2024
2 parents 82ed78d + 72f2c90 commit 75d1c4e
Show file tree
Hide file tree
Showing 3 changed files with 283 additions and 198 deletions.
5 changes: 3 additions & 2 deletions lib/kernel/src/code.erl
Original file line number Diff line number Diff line change
Expand Up @@ -563,9 +563,10 @@ ensure_loaded(Mod) when is_atom(Mod) ->
{Binary,File,Ref} ->
case ensure_prepare_loading(Mod, Binary, File) of
{error,_}=Error ->
call({load_error, Ref, Mod, Error});
call({load_error, Mod, Ref}),
Error;
Prepared ->
call({load_module, Prepared, Mod, File, false, Ref})
call({load_ok, Prepared, Mod, File, Ref})
end
end;
embedded ->
Expand Down
Loading

0 comments on commit 75d1c4e

Please sign in to comment.