RFR: 8375367: vmTestbase tests reported variable uninitialized by clang23
Serguei Spitsyn
sspitsyn at openjdk.org
Thu Jan 15 16:06:58 UTC 2026
On Thu, 15 Jan 2026 06:59:26 GMT, SendaoYan <syan at openjdk.org> wrote:
> Hi all,
>
> The local variable `dummy` is uninitialzed in function `static void JNICALL agentProc(jvmtiEnv* jvmti, JNIEnv* jni, void* arg)` at file test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/multienv/MA04/ma04t002/ma04t002[a].cpp. This PR initial the local variable `dummy` explicitly to avoid compiler warning by clang23.
>
> Change has been verified locally by run the test entry test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/multienv/MA04/ma04t002/TestDescription.java. Test-fix only, no risk.
This is a reasonable fix.
-------------
Marked as reviewed by sspitsyn (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/29247#pullrequestreview-3666391690
More information about the serviceability-dev
mailing list