We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b2fd87 commit 1063a82Copy full SHA for 1063a82
1 file changed
src/vmEntry.cpp
@@ -137,13 +137,17 @@ extern "C" JNIEXPORT jint JNICALL
137
Agent_OnAttach(JavaVM* vm, char* options, void* reserved) {
138
VM::init(vm, true);
139
140
- Error error = _agent_args.parse(options);
+ Arguments args;
141
+ Error error = args.parse(options);
142
if (error) {
143
std::cerr << error.message() << std::endl;
144
return -1;
145
}
146
- Profiler::_instance.run(_agent_args);
147
+ // Save the arguments in case of shutdown
148
+ _agent_args = args;
149
+ Profiler::_instance.run(args);
150
+
151
return 0;
152
153
0 commit comments