Skip to content

luchsh/agentlib.go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dear Java, of course I still love you!

This project tries to explore the possibility of writing a JVMTI agent in the Go language.

The idea attracts me primarily for two reasons:

  • Smaller memory footprint and usually simpler comparing to a Java agent.
  • Easy to develop complex logic in one agent (such as running a HTTP server inside this agent).

It is interesting to accommodate more than one GC-based languages in the same process. These language runtimes have their own background threads, different synchronization mechanims, and even keep communicating with each other.

Build and run

Just run following command from project root directory

bash -x build.sh

For now, only Linux and Mac OSX are supported.

To run it

./test.exe&

Then

Test

Please try following command to test

go test -v ./...

Known issues

Current codebase is just a skeleton which seems to be capable of running some demos. Need more time to complete the jvmti and jni wrappers.

About

Dear Java, of course I still love you!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published