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.

Bug: 271493784
Test: atest rialto_test
Change-Id: I096c502024e6a57a68027422994694d90b345a9e
Merged-In: I096c502024e6a57a68027422994694d90b345a9e
1 file changed
tree: 77b1e006321c7c46d86f6b96afafd3272491fda7
  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. tests/
  16. virtualizationmanager/
  17. virtualizationservice/
  18. vm/
  19. vm_payload/
  20. vmbase/
  21. vmclient/
  22. zipfuse/
  23. .clang-format
  24. .gitignore
  25. Android.bp
  26. OWNERS
  27. PREUPLOAD.cfg
  28. README.md
  29. 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.