Skip to content

Commit

Permalink
8263871: On sem_destroy() failing we should assert
Browse files Browse the repository at this point in the history
Backport-of: 5b8233b
  • Loading branch information
GoeLin committed Oct 11, 2022
1 parent eb0b0ac commit 84e52a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hotspot/os/posix/semaphore_posix.cpp
Expand Up @@ -46,7 +46,8 @@ PosixSemaphore::PosixSemaphore(uint value) {
}

PosixSemaphore::~PosixSemaphore() {
sem_destroy(&_semaphore);
int ret = sem_destroy(&_semaphore);
assert_with_errno(ret == 0, "sem_destroy failed");
}

void PosixSemaphore::signal(uint count) {
Expand Down

1 comment on commit 84e52a3

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

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

Please sign in to comment.