Repository navigation
fix(android)!: preserve JVM settings and reuse metadata sessions - #908
Merged
Merged
Conversation
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.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Oct 7, 2026
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 2026
…luto#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.
11 tasks done
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Android inspection now preserves caller JVM settings, reuses an owned session, and reads class metadata without decompiling application source. Graph traversal avoids repeated edge scans and adjacency copies.
Fixes #901. Refs #893. The reproduced upstream metadata defect is tracked in jadx-headless-mcp#39.
Problem and expected behavior
REA forced a 512 MiB heap and one visible CPU, overriding caller settings and constraining JVM ergonomics. Each operation started another JVM. A class metadata request also reached upstream getters that trigger source generation. Metadata inspection should preserve the caller's configuration and leave class bodies unloaded; related requests should safely reuse the admitted APK.
Change and scope
The OpenJDK investigation found expected option precedence and GC ergonomics; it did not establish a JVM defect warranting an OpenJDK patch.
Contract and boundary impact
Evidence and regression coverage
NOT_LOADEDafter metadata inspection; generic types and three real overload bodies remain correct after generation.JAVA_TOOL_OPTIONS=-Xmx8g:{"engine":{"name":"jadx-headless-mcp","version":"0.7.1","worker_count":1,"heap_limit_mib":8192}}Remaining proof gaps: the reporter's private 133 MB/11-DEX APK, Linux, and JDK 25 remain unverified. Public-fixture success does not prove its load-time OOM is resolved.
Observed, derived, and inferred claims remain distinguishable.
Artifact identity, source provenance, and failed attempts remain preserved.
Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.
Validation performed
npm run check:fast— typecheck and lint passed after rebasing onto current main.npm run test:focused -- <11 affected test files>— 75 passed; one host-dependent firmware test skipped.npm run docs:generateandnpm run docs:check— generated metadata aligned with current main and passed.git diff --check origin/main...HEAD— passed.npm run verify:androidwith OpenJDK 21, audited JAR, and public ApiDemos APK — real CLI/MCP, metadata, and cancellation checks passed after rebase.npm packartifact ran all five Android CLI/MCP operations, metadata regression, and SIGTERM cleanup successfully, with repository-installed dependencies linked into the extracted package.Compatibility, safety, and release
Review checklist