you are viewing a single comment's thread.

view the rest of the comments →

[–]Vulptex[S] 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (1 child)

That's not even possible. Even if you could somehow get an OS working in Java, it couldn't be a fork of Linux.

Android seems to have built-in garbage collection for Java, as opposed to using the JVM. If your app uses C with malloc() and free(), there can't be garbage collection. Garbage collection only happens when the app doesn't handle memory allocation itself.

[–][deleted] 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (0 children)

Even if you could somehow get an OS working in Java, it couldn't be a fork of Linux.

It isn't a fork of linux, it uses a linux kernel. Android has an entire garbage collected runtime sitting on top of the kernel that translates everything to bytecode. An OS is more than just a kernel. The enitire Android UI is running in Java on top of that garbage collected android runtime