Skip to content

Commit

Permalink
8316468: os::write incorrectly handles partial write
Browse files Browse the repository at this point in the history
Reviewed-by: dholmes, shade
  • Loading branch information
Man Cao committed Sep 19, 2023
1 parent d19e017 commit 7ce5bd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/runtime/os.cpp
Expand Up @@ -1439,7 +1439,7 @@ bool os::write(int fd, const void *buf, size_t nBytes) {
if (res == OS_ERR) {
return false;
}
buf = (void *)((char *)buf + nBytes);
buf = (void *)((char *)buf + res);
nBytes -= res;
}

Expand Down

3 comments on commit 7ce5bd1

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

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

@caoman
Copy link
Contributor

@caoman caoman commented on 7ce5bd1 Sep 19, 2023

Choose a reason for hiding this comment

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

/backport jdk21u

@openjdk
Copy link

@openjdk openjdk bot commented on 7ce5bd1 Sep 19, 2023

Choose a reason for hiding this comment

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

@caoman the backport was successfully created on the branch caoman-backport-7ce5bd15 in my personal fork of openjdk/jdk21u. To create a pull request with this backport targeting openjdk/jdk21u: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 7ce5bd15 from the openjdk/jdk repository.

The commit being backported was authored by Man Cao on 19 Sep 2023 and was reviewed by David Holmes and Aleksey Shipilev.

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/jdk21u:

$ git fetch https://github.com/openjdk-bots/jdk21u.git caoman-backport-7ce5bd15:caoman-backport-7ce5bd15
$ git checkout caoman-backport-7ce5bd15
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk21u.git caoman-backport-7ce5bd15

Please sign in to comment.