Sitelet https://github.com/tronprotocol/java-tron/pull/6997
Skip to content

refactor(vm): remove unreachable trace compression path - #6997

Merged
lvs0075 merged 1 commit into
tronprotocol:release_v4.8.3from
halibobo1205:codex/remove-dead-vm-trace-compression
Sep 24, 2026
Merged

lvs0075 merged 1 commit into
tronprotocol:release_v4.8.3from
halibobo1205:codex/remove-dead-vm-trace-compression

Conversation

@halibobo1205

Copy link
Copy Markdown
Collaborator

What does this PR do?

Remove the unreachable VM trace compression path:

  • Remove VMConfig.vmTraceCompressed and its getter.
  • Remove the conditional compression branch in VMActuator.
  • Remove VMUtils.zipAndEncode(), both compress() overloads, the private stream-copy helper, BUF_SIZE, and unused imports.

Why are these changes required?

vmTraceCompressed is permanently false, has no setter, and is not exposed through VmConfig or reference.conf. Its only read site guards the sole entry point into the compression helpers, leaving the entire path unreachable.

Removing this code reduces maintenance overhead and eliminates an unused compression implementation with incomplete Deflater resource cleanup.

This PR has been tested by:

  • Unit Tests:
  • Manual Testing: no runtime manual testing performed. Repository-wide reference checks found no remaining references to the removed symbols, and git diff --check passed.

Follow up

None.

Extra details
None.

@waynercheung waynercheung left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lvs0075
lvs0075 merged commit 11d555d into tronprotocol:release_v4.8.3 Sep 24, 2026
11 checks passed
Little-Peony added a commit to Little-Peony/java-tron that referenced this pull request Oct 9, 2026
* release_v4.8.3:
  refactor(framework): decouple Manager from TronJsonRpcImpl (tronprotocol#6990)
  refactor(api): replace response copy wrappers with Jetty content count (tronprotocol#6982)
  update a new version. version name:GreatVoyage-v4.8.2.2-1-gf3e81404fe,version code:18830 (tronprotocol#7008)
  feat: improve node stability and execution efficiency (tronprotocol#7007)
  chore(p2p): internalize libp2p v2.2.9 as a local `p2p` module (tronprotocol#6992)
  refactor(vm): remove unreachable trace compression path (tronprotocol#6997)
  fix(test): isolate cross-test state leaks and stabilize flaky suites (tronprotocol#6974)
  refactor(config): improve startup errors and remove inactive assertions (tronprotocol#6960)
  ci: optimize pull request checks (tronprotocol#6938)
  fix(config): remove inactive RocksDB options (tronprotocol#6944)

# Conflicts:
#	framework/src/main/java/org/tron/core/services/http/servlets/CreateShieldedTransactionWithoutSpendAuthSigServlet.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants