rialto: Initialize heap when entering main()

As the Rust environment is only fully ready once the global_allocator
has been initialized, call init_heap() as soon as we enter main() to
avoid calling functions (possibly from other crates) that use alloc.

Remove logging from init_heap() as the logger won't be up at that point.

Test: atest rialto_test
Change-Id: I096c502024e6a57a68027422994694d90b345a9e
1 file changed
tree: 32b2cb313cc33f26e08dc6c3ffe5da885acbf565
  1. apex/
  2. apkdmverity/
  3. authfs/
  4. compos/
  5. demo/
  6. docs/
  7. encryptedstore/
  8. javalib/
  9. launcher/
  10. libs/
  11. microdroid/
  12. microdroid_manager/
  13. pvmfw/
  14. rialto/
  15. service_vm/
  16. tests/
  17. virtualizationmanager/
  18. virtualizationservice/
  19. vm/
  20. vm_payload/
  21. vmbase/
  22. vmclient/
  23. zipfuse/
  24. .clang-format
  25. .gitignore
  26. Android.bp
  27. OWNERS
  28. PREUPLOAD.cfg
  29. README.md
  30. TEST_MAPPING
README.md

Virtualization

This repository contains userspace services related to running virtual machines on Android, especially protected virtual machines. See the getting started documentation and Microdroid README for more information.