-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Agent throws NoClassDefFoundError if attached via Gradle test JVM args #2
Comments
It looks like the jar of the agent not being in the application classpath or... don't know :) |
Well, I can still run it on fat-jars with So far not more than (interesting) noise - no real performance problems. Quite a big portion in Bytebuddy, but in a timeframe/environment where no real concurrent access is happening and thus the problem with the secondary super cache won't really occur. And a lot of cases where the interfaces are not using any multi-inheritance (which I also believe is somewhat a prerequisite) and thus seem most likely false-positives. At least the changes I did here and there didn't show any gains in local benchmarks. They just get rid of potential future issues and reduce some noise ;) Good luck for the podcast on Monday. Eager to find out more... |
Exactly, but beware a thing key to trigger the issue, arming what seems false positives: it happens when more then one concrete type hit the type check bytecode (sometime inlining help to keep the type profile "monomorphic" making related type check constant folded no-op) for "enough" times. |
Hi 👋
I wanted to try the goodness of this new agent in one of my test-suites and was so far unable to get it running. For easier repro I created a small project under https://github.com/dreis2211/type-pollution-agent-test where you only need to adjust the path of the agent here and run
./gradlew test
.When I do this on my local macbook I always get the following:
I haven't really looked deep into the agent code yet, but maybe you can see something that would enable the agent to run in these kind of scenarios. Maybe it's even something obvious that I overlooked, in any case I'd appreciate some help.
Cheers,
Christoph
The text was updated successfully, but these errors were encountered: