Skip to content

Commit 424ca8b

Browse files
committed
Merge
1 parent a921df5 commit 424ca8b

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

src/hotspot/share/classfile/javaClasses.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2376,7 +2376,7 @@ void java_lang_Throwable::fill_in_stack_trace(Handle throwable, Handle contScope
23762376
assert (contScope.is_null() || cont != NULL, "must be");
23772377
if (cont != NULL && Continuation::is_continuation_entry_frame(fr, &map)) {
23782378
oop scope = java_lang_Continuation::scope(cont);
2379-
if (contScope.not_null() && oopDesc::equals(scope, contScope())) {
2379+
if (contScope.not_null() && (scope == contScope())) {
23802380
is_last = true;
23812381
} else {
23822382
// if (!Continuation::is_frame_in_continuation(fr, cont)) {

src/hotspot/share/prims/stackwalk.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ void LiveFrameStream::next() {
136136

137137
*(_cont.raw_value()) = java_lang_Continuation::parent(cont);
138138

139-
if (_cont_scope.not_null() && oopDesc::equals(scope, _cont_scope())) {
139+
if (_cont_scope.not_null() && (scope == _cont_scope())) {
140140
assert (Continuation::is_frame_in_continuation(_jvf->fr(), cont), "must be");
141141
_jvf = NULL;
142142
return;

src/hotspot/share/runtime/continuation.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2657,7 +2657,7 @@ static freeze_result is_pinned0(JavaThread* thread, oop cont_scope, bool safepoi
26572657
f = f.frame_sender<ContinuationCodeBlobLookup>(&map);
26582658
if (!Continuation::is_frame_in_continuation(f, cont)) {
26592659
oop scope = java_lang_Continuation::scope(cont);
2660-
if (oopDesc::equals(scope, cont_scope))
2660+
if (scope == cont_scope)
26612661
break;
26622662
cont = java_lang_Continuation::parent(cont);
26632663
if (cont == (oop) NULL)
@@ -2677,7 +2677,7 @@ int Continuation::try_force_yield(JavaThread* thread, const oop cont) {
26772677
oop scope = NULL;
26782678
oop innermost = get_continuation(thread);
26792679
for (oop c = innermost; c != NULL; c = java_lang_Continuation::parent(c)) {
2680-
if (oopDesc::equals(c, cont)) {
2680+
if (c == cont) {
26812681
scope = java_lang_Continuation::scope(c);
26822682
break;
26832683
}
@@ -2688,7 +2688,7 @@ int Continuation::try_force_yield(JavaThread* thread, const oop cont) {
26882688
if (thread->_cont_yield) {
26892689
return -2; // during yield
26902690
}
2691-
if (!oopDesc::equals(innermost, cont)) { // we have nested continuations
2691+
if (!(innermost == cont)) { // we have nested continuations
26922692
// make sure none of the continuations in the hierarchy are pinned
26932693
freeze_result res_pinned = is_pinned0(thread, java_lang_Continuation::scope(cont), true);
26942694
if (res_pinned != freeze_ok)
@@ -3594,7 +3594,7 @@ bool Continuation::is_scope_bottom(oop cont_scope, const frame& f, const Registe
35943594

35953595
oop sc = continuation_scope(cont);
35963596
assert(sc != NULL, "");
3597-
return oopDesc::equals(sc, cont_scope);
3597+
return sc == cont_scope;
35983598
}
35993599

36003600
// TODO: delete? consider other is_scope_bottom or something
@@ -4018,7 +4018,7 @@ inline void ContMirror::allocate_stacks(int size, int oops, int frames) {
40184018

40194019
// This first assertion isn't important, as we'll overwrite the Java-computed ones, but it's just to test that the Java computation is OK.
40204020
assert(_sp == java_lang_Continuation::sp(_cont) && _fp == java_lang_Continuation::fp(_cont) && _pc == java_lang_Continuation::pc(_cont), "");
4021-
assert (oopDesc::equals(_stack, java_lang_Continuation::stack(_cont)), "");
4021+
assert (_stack == java_lang_Continuation::stack(_cont), "");
40224022
assert (_stack->base(basicElementType) == _hstack, "");
40234023
assert (to_bytes(_stack_length) >= size && to_bytes(_sp) >= size, "stack_length: %d sp: %d size: %d", to_bytes(_stack_length), _sp, size);
40244024
assert (to_bytes(_ref_sp) >= oops, "oops: %d ref_sp: %d refStack length: %d", oops, _ref_sp, _ref_stack->length());

src/hotspot/share/runtime/vframe.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ vframeStream::vframeStream(JavaThread* thread, Handle continuation_scope, bool s
511511
}
512512
_cont = Handle(Thread::current(), cont);
513513

514-
assert (_reg_map.cont() == (oop)NULL || oopDesc::equals(_cont(), _reg_map.cont()),
514+
assert (_reg_map.cont() == (oop)NULL || (_cont() == _reg_map.cont()),
515515
"map.cont: " INTPTR_FORMAT " vframeStream: " INTPTR_FORMAT,
516516
p2i((oopDesc*)_reg_map.cont()), p2i((oopDesc*)_cont()));
517517
}
@@ -533,7 +533,7 @@ vframeStream::vframeStream(Handle continuation)
533533
_frame = _frame.sender(&_reg_map);
534534
}
535535

536-
assert (_reg_map.cont() == (oop)NULL || oopDesc::equals(_cont(), _reg_map.cont()),
536+
assert (_reg_map.cont() == (oop)NULL || (_cont() == _reg_map.cont()),
537537
"map.cont: " INTPTR_FORMAT " vframeStream: " INTPTR_FORMAT,
538538
p2i((oopDesc*)_reg_map.cont()), p2i((oopDesc*)_cont()));
539539
}

src/hotspot/share/runtime/vframe.inline.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ inline void vframeStreamCommon::next() {
6262

6363
// *(_cont.raw_value()) = java_lang_Continuation::parent(_cont());
6464

65-
if (_continuation_scope.not_null() && oopDesc::equals(scope, _continuation_scope())) {
65+
if (_continuation_scope.not_null() && (scope == _continuation_scope())) {
6666
assert (Continuation::is_frame_in_continuation(_frame, cont), "");
6767
_mode = at_end_mode;
6868
break;
@@ -74,7 +74,7 @@ inline void vframeStreamCommon::next() {
7474

7575
if (cont_entry) {
7676
*(_cont.raw_value()) = java_lang_Continuation::parent(cont);
77-
assert (_reg_map.cont() == (oop)NULL || oopDesc::equals(_cont(), _reg_map.cont()),
77+
assert (_reg_map.cont() == (oop)NULL || (_cont() == _reg_map.cont()),
7878
"map.cont: " INTPTR_FORMAT " vframeStream: " INTPTR_FORMAT,
7979
p2i((oopDesc*)_reg_map.cont()), p2i((oopDesc*)_cont()));
8080
}

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot/src/org/graalvm/compiler/hotspot/meta/HotSpotHostForeignCallsProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,8 +423,8 @@ public void initialize(HotSpotProviders providers, OptionValues options) {
423423
}
424424

425425
if (c.continuationThaw != 0) {
426-
registerForeignCall(CONTINUATION_DO_CONTINUE, c.continuationThaw, JavaCall, DESTROYS_REGISTERS, SAFEPOINT, NOT_REEXECUTABLE, any());
427-
registerForeignCall(CONTINUATION_YIELD, c.continuationDoYield, JavaCall, DESTROYS_REGISTERS, SAFEPOINT, NOT_REEXECUTABLE, any());
426+
registerForeignCall(CONTINUATION_DO_CONTINUE, c.continuationThaw, JavaCall, SAFEPOINT, NOT_REEXECUTABLE, any());
427+
registerForeignCall(CONTINUATION_YIELD, c.continuationDoYield, JavaCall, SAFEPOINT, NOT_REEXECUTABLE, any());
428428
}
429429

430430

0 commit comments

Comments
 (0)