~/talk

Who Instruments the Instrumenters?

Talkat Voxxed Days Amsterdam 2025 · on Thursday, 2025-04-03· [java]
slides:none on file

Shows how Java agents actually work: installs transformers via the Instrumentation API, uses Javaassist and Byte Buddy to rewrite methods, and inspects real-world effects from JaCoCo and Mockito. Built an agent that records transformer diffs (old vs new bytecode), decompiles changes with a Fernflower fork, and opens an HTTP server on port 7071 to browse modified classes. Demonstrates pitfalls (JaCoCo abusing equals, bootstrap classpath limits) and a Maven plugin; the tool works and found a Spring bug.

AI-written summary · about

  1. 0:00Introduction to code instrumentation
  2. 2:12Code coverage with JaCoCo
  3. 5:04Mocking with Mockito
  4. 5:49Monitoring and profiling
  5. 7:55About Submachine and Java agents
  6. 8:38How Java agents work
  7. 12:29Java Assist for bytecode manipulation
  8. 15:20Who instruments the instrumenters?
  9. 18:11Meta agent demo overview
  10. 23:57JaCoCo's equals method hack
  11. 25:44Mockito's bytecode generation
  12. 30:01Live demo of meta agent
  13. 33:34Annotation proxies and pitfalls
  14. 36:47Class loader hierarchies explained
  15. 40:16Bootstrap class path challenges
  16. 41:19Maven plugin for runtime transformers
  17. 43:34Q&A and final thoughts
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.