Skip to content

Commit

Permalink
8285399: JNI exception pending in awt_GraphicsEnv.c:1432
Browse files Browse the repository at this point in the history
Reviewed-by: azvegint, serb
  • Loading branch information
prrace committed May 21, 2022
1 parent 7c08647 commit c156bcc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/java.desktop/unix/native/common/awt/awt.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ extern void awt_output_flush();

#define AWT_LOCK_IMPL() \
do { \
if ((*env)->ExceptionCheck(env)) { \
(*env)->ExceptionClear(env); \
} \
(*env)->CallStaticVoidMethod(env, tkClass, awtLockMID); \
if ((*env)->ExceptionCheck(env)) { \
(*env)->ExceptionClear(env); \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1425,10 +1425,10 @@ Java_sun_awt_X11GraphicsDevice_getDoubleBufferVisuals(JNIEnv *env,
AWT_FLUSH_UNLOCK();
for (i = 0; i < visScreenInfo->count; i++) {
XdbeVisualInfo* visInfo = visScreenInfo->visinfo;
(*env)->CallVoidMethod(env, this, midAddVisual, (visInfo[i]).visual);
if ((*env)->ExceptionCheck(env)) {
break;
}
(*env)->CallVoidMethod(env, this, midAddVisual, (visInfo[i]).visual);
}
AWT_LOCK();
XdbeFreeVisualInfo(visScreenInfo);
Expand Down

5 comments on commit c156bcc

@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 c156bcc Dec 22, 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 c156bcc Dec 22, 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-c156bcc5 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 c156bcc5 from the openjdk/jdk repository.

The commit being backported was authored by Phil Race on 21 May 2022 and was reviewed by Alexander Zvegintsev and Sergey Bylokhov.

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-c156bcc5:GoeLin-backport-c156bcc5
$ git checkout GoeLin-backport-c156bcc5
# 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-c156bcc5

@GoeLin
Copy link
Member

@GoeLin GoeLin commented on c156bcc Dec 31, 2022

Choose a reason for hiding this comment

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

/backport jdk11u-dev

@openjdk
Copy link

@openjdk openjdk bot commented on c156bcc 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-c156bcc5 in my personal fork of openjdk/jdk11u-dev. To create a pull request with this backport targeting openjdk/jdk11u-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 c156bcc5 from the openjdk/jdk repository.

The commit being backported was authored by Phil Race on 21 May 2022 and was reviewed by Alexander Zvegintsev and Sergey Bylokhov.

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/jdk11u-dev:

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

Please sign in to comment.