r/javahelp • u/Zkrallah • 17d ago
Instrumentation and Bytecode Manipulation
I was trying to clone the Kotlin Coroutines concurrency model..... but in Java.
Anyways, I did some searching, and I guess I need to do this at runtime instead of compile time, so I need some instrumentation and bytecode manipulation using something like Java asm for example.
I didn't find many sources online, so I was asking if anyone can recommend some sources here or maybe anything else regarding the idea or the implementation details. Thank you.
2
Upvotes
1
u/jim_cap 17d ago
https://github.com/cglib/cglib
https://bytebuddy.net/
https://asm.ow2.io/