fix(android)!: preserve JVM settings and reuse metadata sessions (#908)
* perf(graph): avoid repeated traversal edge scans and copies * fix(android)!: preserve JVM settings and reuse metadata sessions Read class metadata without generating application source, retain immutable serialized APK sessions, and join owned cleanup on cancellation and shutdown. BREAKING CHANGE: Android analysis now requires a full JDK 17 or newer with its compiler module for the packaged Java source bridge.
This commit is contained in:
@@ -254,6 +254,12 @@ export class ProviderProcessSupervisor {
|
||||
};
|
||||
}
|
||||
|
||||
/** Begin a new observation on a retained process without retaining earlier output. */
|
||||
resetOutput(): void {
|
||||
this.#stdout.reset();
|
||||
this.#stderr.reset();
|
||||
}
|
||||
|
||||
/** Wait for process exit up to a caller-owned bounded interval. */
|
||||
async waitForExit(timeoutMs: number): Promise<boolean> {
|
||||
return waitForProcessEvent(
|
||||
@@ -403,6 +409,11 @@ class ProcessOutputCapture {
|
||||
return this.#bytes;
|
||||
}
|
||||
|
||||
reset(): void {
|
||||
this.#chunks.length = 0;
|
||||
this.#bytes = 0;
|
||||
}
|
||||
|
||||
append(chunk: Buffer): void {
|
||||
this.#bytes += chunk.byteLength;
|
||||
this.#chunks.push(Buffer.from(chunk));
|
||||
|
||||
Reference in New Issue
Block a user