Skip to content

Commit 7b471b7

Browse files
committed
8325910: Rename jnihelper.h
Backport-of: 810daf820633e16e3ab058325c539695087486d5
1 parent 122b4f5 commit 7b471b7

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

test/hotspot/jtreg/vmTestbase/nsk/stress/jni/gclocker/libgcl001.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
#include <jni.h>
2525
#include <stdlib.h>
26-
#include "jnihelper.h"
26+
#include "jnihelper.hpp"
2727

2828
/*
2929
basic routine: provide critical sections and calculations

test/hotspot/jtreg/vmTestbase/nsk/stress/jni/jnihelper.h renamed to test/hotspot/jtreg/vmTestbase/nsk/stress/jni/jnihelper.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 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
@@ -26,7 +26,7 @@
2626
// checked malloc to trap OOM conditions
2727
static void* c_malloc(JNIEnv* env, size_t size) {
2828
void* ret = malloc(size);
29-
if (ret == NULL)
29+
if (ret == nullptr)
3030
env->FatalError("malloc failed");
3131
return ret;
3232
}

test/hotspot/jtreg/vmTestbase/nsk/stress/jni/libjnistress001.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
/* Changed from strings.h to string.h for Windows. */
2727
#include <string.h>
2828
#include <stdlib.h>
29-
#include "jnihelper.h"
29+
#include "jnihelper.hpp"
3030

3131
extern "C" {
3232

test/hotspot/jtreg/vmTestbase/nsk/stress/jni/libjnistress002.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 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
@@ -23,7 +23,7 @@
2323

2424
#include <jni.h>
2525
#include <stdio.h>
26-
#include "jnihelper.h"
26+
#include "jnihelper.hpp"
2727

2828
extern "C" {
2929

test/hotspot/jtreg/vmTestbase/nsk/stress/jni/libjnistress003.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include <jni.h>
2525
#include <stdio.h>
2626
#include <stdlib.h>
27-
#include "jnihelper.h"
27+
#include "jnihelper.hpp"
2828

2929
extern "C" {
3030

test/hotspot/jtreg/vmTestbase/nsk/stress/jni/libjnistress004.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 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
@@ -25,7 +25,7 @@
2525
#include <stdio.h>
2626
#include <stdlib.h>
2727
#include <string.h>
28-
#include "jnihelper.h"
28+
#include "jnihelper.hpp"
2929

3030
extern "C" {
3131

test/hotspot/jtreg/vmTestbase/nsk/stress/jni/libjnistress005.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 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
@@ -24,7 +24,7 @@
2424
#include <jni.h>
2525
#include <stdio.h>
2626
#include <stdlib.h>
27-
#include "jnihelper.h"
27+
#include "jnihelper.hpp"
2828

2929
extern "C" {
3030

test/hotspot/jtreg/vmTestbase/nsk/stress/jni/libjnistress006.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 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
@@ -24,7 +24,7 @@
2424
#include <jni.h>
2525
#include <stdio.h>
2626
#include <stdlib.h>
27-
#include "jnihelper.h"
27+
#include "jnihelper.hpp"
2828

2929
extern "C" {
3030

test/hotspot/jtreg/vmTestbase/nsk/stress/jni/libjnistress007.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2007, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2007, 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
@@ -23,7 +23,7 @@
2323

2424
#include <jni.h>
2525
#include <stdio.h>
26-
#include "jnihelper.h"
26+
#include "jnihelper.hpp"
2727

2828
extern "C" {
2929

0 commit comments

Comments
 (0)