mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 13:05:53 +08:00
Revert "Perf & Fix: reduce ClassFileLoadHook overhead and fix retransform patch path"
This reverts commit bb5b215a33.
This commit is contained in:
1 parent
cadd3679e9
commit
1dcad52e15
10 files changed
+130
-198
No files matched your search
@@ -34,10 +34,5 @@ void JNICALL ClassFileLoadHook(
|
||||
|
||||
agent.get_eventbus().post(event);
|
||||
|
||||
// Only dispatch the mutable variant when there are actual mutable listeners.
|
||||
// Avoids a redundant map lookup + vector copy on every class load (hot path).
|
||||
if (agent.get_eventbus().has_mutable_listeners<EventClassFileLoadHook>()) {
|
||||
agent.get_eventbus().post_mutable(event);
|
||||
}
|
||||
}
|
||||
|
||||
agent.get_eventbus().post_mutable(event);
|
||||
}
|
||||
Reference in new issue
Block a user