bytecode execution event

QwertyYtPL QwertyYtPL qwertyytpl1612 at gmail.com
Sun May 14 22:24:59 UTC 2023


I wanted to modify OpenJDK's source code just for myself to add little
event that will be called just before one bytecode will be called, in this
event i want to be able to check what bytecode it is and like all
attributes (i guess that i need Node or something). I want to do that to
have control over java application ran, for example if I'm running some
virus written in java I will be able to stop everything at some specific
instruction that for example causes some file to download or command to
execute. It will be a gate for creating some security system that for
example asks the user if he wants a java program to download something or
run something (on runtime). I think that I will just do this event that
will call functions in my dll or something, so I won't be coping with the
jdk build system. I can even do lua scripting for that, so my dll will be
able to read lua script and let it handle events. I'm asking it here
because firstly I have problems with finding a place for hooking an event
and secondly I want to ask if it even makes sense.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/hotspot-runtime-dev/attachments/20230515/d8c633b3/attachment.htm>


More information about the hotspot-runtime-dev mailing list