Skip to content

Commit 42652b2

Browse files
author
Kim Barrett
committed
8337787: Fix -Wzero-as-null-pointer-constant warnings when JVMTI feature is disabled
Reviewed-by: ayang, sspitsyn
1 parent 807186f commit 42652b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/hotspot/share/prims/jvmtiExport.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1998, 2024, 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
@@ -287,10 +287,10 @@ class JvmtiExport : public AllStatic {
287287
}
288288

289289
// field access management
290-
static address get_field_access_count_addr() NOT_JVMTI_RETURN_(0);
290+
static address get_field_access_count_addr() NOT_JVMTI_RETURN_(nullptr);
291291

292292
// field modification management
293-
static address get_field_modification_count_addr() NOT_JVMTI_RETURN_(0);
293+
static address get_field_modification_count_addr() NOT_JVMTI_RETURN_(nullptr);
294294

295295
// -----------------
296296

0 commit comments

Comments
 (0)