Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8212961: [TESTBUG] vmTestbase/nsk/stress/jni/ native code cleanup
Reviewed-by: stuefe, iignatyev
  • Loading branch information
David Holmes committed Jul 27, 2021
1 parent bb508e1 commit fde1831
Show file tree
Hide file tree
Showing 8 changed files with 656 additions and 666 deletions.
8 changes: 8 additions & 0 deletions test/hotspot/jtreg/vmTestbase/nsk/stress/jni/jnihelper.h
Expand Up @@ -41,3 +41,11 @@ static void* c_malloc(JNIEnv* env, size_t size) {
env->FatalError("Unexpected JNI Exception. TEST FAIL.");\
}\
}

// Checks return code for JNI calls that don't raise exceptions
// and generate fatal error
#define CHECK(jniCall) do { \
if ((jniCall) != 0) { \
env->FatalError("Error invoking JNI method: " #jniCall); \
} \
} while (0)

3 comments on commit fde1831

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GoeLin
Copy link
Member

@GoeLin GoeLin commented on fde1831 Dec 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/backport jdk17u-dev

@openjdk
Copy link

@openjdk openjdk bot commented on fde1831 Dec 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GoeLin the backport was successfully created on the branch GoeLin-backport-fde18313 in my personal fork of openjdk/jdk17u-dev. To create a pull request with this backport targeting openjdk/jdk17u-dev:master, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

This pull request contains a backport of commit fde18313 from the openjdk/jdk repository.

The commit being backported was authored by David Holmes on 27 Jul 2021 and was reviewed by Thomas Stuefe and Igor Ignatyev.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk17u-dev:

$ git fetch https://github.com/openjdk-bots/jdk17u-dev GoeLin-backport-fde18313:GoeLin-backport-fde18313
$ git checkout GoeLin-backport-fde18313
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk17u-dev GoeLin-backport-fde18313

Please sign in to comment.