Revert "Perf & Fix: reduce ClassFileLoadHook overhead and fix retransform patch path"

This reverts commit bb5b215a33.
This commit is contained in:
xiaozhou233 committed 2026-08-14 23:09:40 +08:00
1 parent cadd3679e9
commit 1dcad52e15
10 files changed
+130 -198

No files matched your search

+2 -7
View File
@@ -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);
}