diff --git a/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/nsk_strace.h b/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/nsk_strace.hpp similarity index 92% rename from test/hotspot/jtreg/vmTestbase/nsk/stress/strace/nsk_strace.h rename to test/hotspot/jtreg/vmTestbase/nsk/stress/strace/nsk_strace.hpp index eb787baddac..9a03b990df7 100644 --- a/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/nsk_strace.h +++ b/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/nsk_strace.hpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -35,7 +35,7 @@ // Check for pending exception of the specified type // If it's present, then clear it #define EXCEPTION_CHECK(exceptionClass, recurDepth) \ - if (EXCEPTION_OCCURRED != NULL) { \ + if (EXCEPTION_OCCURRED != nullptr) { \ jobject exception = EXCEPTION_OCCURRED; \ if (env->IsInstanceOf(exception, exceptionClass) == JNI_TRUE) { \ EXCEPTION_CLEAR; \ @@ -45,22 +45,22 @@ #define FIND_CLASS(_class, _className)\ if (!NSK_JNI_VERIFY(env, (_class = \ - env->FindClass(_className)) != NULL))\ + env->FindClass(_className)) != nullptr))\ exit(1) #define GET_OBJECT_CLASS(_class, _obj)\ if (!NSK_JNI_VERIFY(env, (_class = \ - env->GetObjectClass(_obj)) != NULL))\ + env->GetObjectClass(_obj)) != nullptr))\ exit(1) #define GET_FIELD_ID(_fieldID, _class, _fieldName, _fieldSig)\ if (!NSK_JNI_VERIFY(env, (_fieldID = \ - env->GetFieldID(_class, _fieldName, _fieldSig)) != NULL))\ + env->GetFieldID(_class, _fieldName, _fieldSig)) != nullptr))\ exit(1) #define GET_STATIC_FIELD_ID(_fieldID, _class, _fieldName, _fieldSig)\ if (!NSK_JNI_VERIFY(env, (_fieldID = \ - env->GetStaticFieldID(_class, _fieldName, _fieldSig)) != NULL))\ + env->GetStaticFieldID(_class, _fieldName, _fieldSig)) != nullptr))\ exit(1) #define GET_STATIC_BOOL_FIELD(_value, _class, _fieldName)\ @@ -93,12 +93,12 @@ #define GET_STATIC_METHOD_ID(_methodID, _class, _methodName, _sig)\ if (!NSK_JNI_VERIFY(env, (_methodID = \ - env->GetStaticMethodID(_class, _methodName, _sig)) != NULL))\ + env->GetStaticMethodID(_class, _methodName, _sig)) != nullptr))\ exit(1) #define GET_METHOD_ID(_methodID, _class, _methodName, _sig)\ if (!NSK_JNI_VERIFY(env, (_methodID = \ - env->GetMethodID(_class, _methodName, _sig)) != NULL))\ + env->GetMethodID(_class, _methodName, _sig)) != nullptr))\ exit(1) #define CALL_STATIC_VOID_NOPARAM(_class, _methodName)\ diff --git a/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace003.cpp b/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace003.cpp index 727da0f5324..1c1c91d242b 100644 --- a/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace003.cpp +++ b/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace003.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -22,7 +22,7 @@ */ #include -#include "nsk_strace.h" +#include "nsk_strace.hpp" extern "C" { diff --git a/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace004.cpp b/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace004.cpp index ee278b054be..031397841ac 100644 --- a/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace004.cpp +++ b/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace004.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -22,7 +22,7 @@ */ #include -#include "nsk_strace.h" +#include "nsk_strace.hpp" extern "C" { diff --git a/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace005.cpp b/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace005.cpp index 77f83b374c0..96cde50ce74 100644 --- a/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace005.cpp +++ b/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace005.cpp @@ -22,7 +22,7 @@ */ #include -#include "nsk_strace.h" +#include "nsk_strace.hpp" #include "nsk_tools.h" extern "C" { diff --git a/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace006.cpp b/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace006.cpp index a70030fb095..a6e4cf3b662 100644 --- a/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace006.cpp +++ b/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace006.cpp @@ -22,7 +22,7 @@ */ #include -#include "nsk_strace.h" +#include "nsk_strace.hpp" extern "C" { diff --git a/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace008.cpp b/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace008.cpp index cca0c1c2d8a..18c8d76e188 100644 --- a/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace008.cpp +++ b/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace008.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -22,7 +22,7 @@ */ #include -#include "nsk_strace.h" +#include "nsk_strace.hpp" extern "C" { diff --git a/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace009.cpp b/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace009.cpp index 995e06ad1ab..8ff02942b1a 100644 --- a/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace009.cpp +++ b/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace009.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -22,7 +22,7 @@ */ #include -#include "nsk_strace.h" +#include "nsk_strace.hpp" extern "C" { diff --git a/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace011.cpp b/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace011.cpp index c9e699f7bb5..462d1879709 100644 --- a/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace011.cpp +++ b/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace011.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -22,7 +22,7 @@ */ #include -#include "nsk_strace.h" +#include "nsk_strace.hpp" extern "C" { diff --git a/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace012.cpp b/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace012.cpp index 3c58b84eff0..d58e0eacbf3 100644 --- a/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace012.cpp +++ b/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace012.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -22,7 +22,7 @@ */ #include -#include "nsk_strace.h" +#include "nsk_strace.hpp" extern "C" { diff --git a/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace014.cpp b/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace014.cpp index 4f58b8a5903..2b535c60f48 100644 --- a/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace014.cpp +++ b/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace014.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -22,7 +22,7 @@ */ #include -#include "nsk_strace.h" +#include "nsk_strace.hpp" extern "C" { diff --git a/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace015.cpp b/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace015.cpp index e0fd29fbebb..658561bcc3f 100644 --- a/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace015.cpp +++ b/test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace015.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -22,7 +22,7 @@ */ #include -#include "nsk_strace.h" +#include "nsk_strace.hpp" extern "C" {