fix(incision): repair target scanning and shared JVMTI - #730
Merged
Micalhl merged 1 commit intoAug 22, 2026
Conversation
Route loaded-class scans and native operations through the canonical owner, then chain every plugin transformer through the bootstrap bridge.
FxRayHughes
force-pushed
the
fix/incision-shared-jvmti
branch
from
August 22, 2026 04:10
e223440 to
cc64ef3
Compare
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.
概要
本 PR 一并修复 Incision API v2 重构后暴露的两个独立运行时问题:
PENDING_LOAD/UNAVAILABLE状态,表现为EnchantmentMenu.slotsChanged等切术已注册但没有运行日志。System.load会触发already loaded in another classloader;即使复用 native,多个插件的 transformer/native accessor 也必须按顺序共享,不能只执行 owner 或互相覆盖。Bug 1:目标类扫描与 PENDING_LOAD
isClassLoaded输出实际 JVMTI 匹配数量,避免静默误判ClassFileLoadHook捕获,已加载类同步 retransform真实回归同时覆盖:
EnchantmentMenu.slotsChanged(Container)的旧单行 Scope 注入PendingLoadTarget,验证PENDING_LOAD → ClassFileLoadHook → weaveBug 2:多插件 native 共享
IncisionBridge持有 JVM 级唯一 native ownerClassFileLoadHook按 delegate 注册顺序串联字节码,两个插件的 advice 先后执行而非覆盖nDispose验证
:module:incision:test通过375 pass / 0 fail / 1 not-applicablebackend-jvmti-pending-nms:PASSbackend-jvmti-pending-fixture:PASSbridge-peer-dual-dispatch:PASSbridge-peer-disable-isolation:PASSalready loaded in another classloader、dispatch unavailable、未回滚的RetransformClassesfailure对应真实服务端测试插件与脚本已提交到
FxRayHughes/Incision-Test@74fba53。