changeset 53027:8c5a14302477 fibers

Redo last fix properly.
author cjplummer
date Wed, 19 Dec 2018 13:35:56 -0800
parents 336bfe5f7cd1
children eeeb45c9ba8e
files test/hotspot/jtreg/serviceability/jvmti/FiberTest/libFiberTest.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/hotspot/jtreg/serviceability/jvmti/FiberTest/libFiberTest.c	Wed Dec 19 13:21:49 2018 -0800
+++ b/test/hotspot/jtreg/serviceability/jvmti/FiberTest/libFiberTest.c	Wed Dec 19 13:35:56 2018 -0800
@@ -197,7 +197,7 @@
   if (err != JVMTI_ERROR_NONE) {
     (*jni)->FatalError(jni, "FiberScheduled event handler: failed during JVMTI GetThreadFiber call");
   }
-  if (mounted_fiber != fiber) {
+  if (!(*jni)->IsSameObject(jni, mounted_fiber, fiber)) {
     (*jni)->FatalError(jni, "FiberScheduled event handler: JVMTI GetThreadFiber failed to return proper fiber");
   }