File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,9 @@ jvmtiRawMonitorEnter(jvmtiEnv* env,
135
135
}
136
136
}
137
137
#if JAVA_SPEC_VERSION >= 19
138
- currentThread -> ownedMonitorCount += 1 ;
138
+ if (UDATA_MAX != currentThread -> continuationPinCount ) {
139
+ currentThread -> continuationPinCount += 1 ;
140
+ }
139
141
#endif /* JAVA_SPEC_VERSION >= 19 */
140
142
} else {
141
143
#if defined(J9VM_INTERP_ATOMIC_FREE_JNI )
@@ -174,7 +176,9 @@ jvmtiRawMonitorExit(jvmtiEnv* env,
174
176
rc = JVMTI_ERROR_NOT_MONITOR_OWNER ;
175
177
#if JAVA_SPEC_VERSION >= 19
176
178
} else {
177
- currentThread -> ownedMonitorCount -= 1 ;
179
+ if (0 != currentThread -> continuationPinCount ) {
180
+ currentThread -> continuationPinCount -= 1 ;
181
+ }
178
182
#endif /* JAVA_SPEC_VERSION >= 19 */
179
183
}
180
184
You can’t perform that action at this time.
0 commit comments