firefly icon indicating copy to clipboard operation
firefly copied to clipboard

Code Reloading BIFs

Open KronicDeth opened this issue 6 years ago • 2 comments

Lumen being Ahead-of-Time compiled will likely never support code reloading, but we may need to stub this out to at least return exceptions or errors with code that expects then to exist.

  • [ ] call_on_load_function/1
  • [ ] check_old_code/1
  • [ ] check_process_code/2
  • [ ] check_process_code/3
  • [ ] delete_module/1
  • [ ] finish_after_on_load/2
  • [ ] finish_loading/1
  • [ ] has_prepared_code_on_load/1
  • [ ] load_module/2
  • [ ] loaded/0
  • [ ] module_loaded/1
  • [ ] pre_loaded/0
  • [ ] prepare_loading/2
  • [ ] purge_module/1

KronicDeth avatar Jun 07 '19 17:06 KronicDeth

I think we can probably just stub these out with unimplemented!(), it is safe to abort/panic if these are ever called until we eventually design/build a JIT for Lumen.

bitwalker avatar Jun 07 '19 17:06 bitwalker

erlang:loaded/0 is called in erts/preloaded/src/erl_init.erl

KronicDeth avatar Oct 08 '20 20:10 KronicDeth