agentlib.go

command module
v0.0.0-...-ffd0cae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL