jbachorik on develop
Add renovate.json (#433) Co-au… (compare)
jbachorik on configure
renovate[bot] on configure
Add renovate.json (compare)
jbachorik on develop
Export WireIO version as a syst… (compare)
jbachorik on develop
Update README.md (compare)
I am getting a NullPointerException in btracec at com.sun.btrace.compiler.Compiler.printDiagnostic(Compiler.java:303). Should there be an null pointer check there, or am I doing something strange in my scripts?
It fails on this line: println(Sys.Memory.getMemoryPoolUsage(str(sb)));
Hi! I'd like to debug agent, but somehow I am unable to do that.
In the Client when the agent is loaded (vm.loadAgent(agentPath, agentArgs);
) I added additional arguments:
agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005
The console prints:
DEBUG: agent args: agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005,port=2020,statsd=,debug=true,bootClassPath=.,systemClassPath=/opt/oracle_jdk/jre/../lib/tools.jar,probeDescPath=.
but the agent does not expose debugger port.
Did I provided args in wrong format, or is there any other problem?
But I have a somewhat basic question, consider this: I have a private variable private Context CROSS_THREAD_CONTEXT_FOR_UNIT_TEST = null;
and I want to modify this variabe on a method call. Basically I have production code running
private void setCrossThreadContextForUnitTests( Context context )
{
CROSS_THREAD_CONTEXT_FOR_UNIT_TEST = context;
}
I want to intercept and set context to null. How would I do that (I understand it has to be unsafe mode). Do I need to reflect on @Self somehow?