Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30641f56 authored by Josh Gao's avatar Josh Gao Committed by android-build-merger
Browse files

Merge "zygote: respond and wait for reply to --boot-completed." am: d34e18c0...

Merge "zygote: respond and wait for reply to --boot-completed." am: d34e18c0 am: 15f8fb42 am: 332a5375
am: cca303ec

Change-Id: Iaf3ab6f8baa3cf1e57b546fc9d00b428ad2a6811
parents ed6096a2 cca303ec
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -758,6 +758,7 @@ public class ZygoteProcess {
                ZygoteState state = openZygoteSocketIfNeeded(abi);
                state.mZygoteOutputWriter.write("1\n--boot-completed\n");
                state.mZygoteOutputWriter.flush();
                state.mZygoteInputStream.readInt();
            }
        } catch (Exception ex) {
            throw new RuntimeException("Failed to inform zygote of boot_completed", ex);
+6 −0
Original line number Diff line number Diff line
@@ -306,6 +306,12 @@ class ZygoteConnection {
    }

    private void handleBootCompleted() {
        try {
            mSocketOutStream.writeInt(0);
        } catch (IOException ioe) {
            throw new IllegalStateException("Error writing to command socket", ioe);
        }

        VMRuntime.bootCompleted();
    }