changeset 36096:5737705c0412

8149697: Fix for 8145725 is broken Summary: As per the existing comment we needed to check the saved 'index' instead Reviewed-by: gthornbr, dcubed, kbarrett
author dholmes
date Thu, 11 Feb 2016 15:43:30 -0500
parents 2d530b26ae5c
children c830c234e056
files hotspot/src/os/linux/vm/os_linux.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hotspot/src/os/linux/vm/os_linux.cpp	Thu Feb 11 16:49:12 2016 +0100
+++ b/hotspot/src/os/linux/vm/os_linux.cpp	Thu Feb 11 15:43:30 2016 -0500
@@ -5756,7 +5756,7 @@
   int index = _cur_index;
   status = pthread_mutex_unlock(_mutex);
   assert_status(status == 0, status, "invariant");
-  if (s < 1 && _cur_index != -1) {
+  if (s < 1 && index != -1) {
     // thread is definitely parked
     status = pthread_cond_signal(&_cond[index]);
     assert_status(status == 0, status, "invariant");