Skip to content

Commit d9b98f7

Browse files
author
Kim Barrett
committed
8350771: Fix -Wzero-as-null-pointer-constant warning in nsk/monitoring ThreadController utility
Reviewed-by: dholmes
1 parent 7c173fd commit d9b98f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/hotspot/jtreg/vmTestbase/nsk/monitoring/share/ThreadController.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -465,8 +465,8 @@ extern "C" {
465465
return env->NewStringUTF("TIMED_WAITING");
466466
}
467467
// should never reach
468-
assert(0);
469-
return 0;
468+
assert(false);
469+
return nullptr;
470470
}
471471

472472
/*

0 commit comments

Comments
 (0)