mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
8371871: libSharedCloseAgent.cpp crashes VS2019 and older VS2022 compiler
Reviewed-by: jvernee, mdoerr
This commit is contained in:
parent
920a99faeb
commit
b46aef88b3
@ -102,7 +102,8 @@ Agent_OnLoad(JavaVM *vm, char *options, void *reserved) {
|
||||
return jni_err;
|
||||
}
|
||||
|
||||
jvmtiCapabilities capabilities{};
|
||||
jvmtiCapabilities capabilities;
|
||||
memset(&capabilities, 0, sizeof(jvmtiCapabilities));
|
||||
capabilities.can_generate_method_exit_events = 1;
|
||||
|
||||
jvmtiError err = env->AddCapabilities(&capabilities);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user