Skip to content

Commit

Permalink
Update (2024.09.11, 3rd)
Browse files Browse the repository at this point in the history
34426: LA port of 8333300: [JVMCI] add support for generational ZGC
  • Loading branch information
loongson-jvm authored Sep 11, 2024
1 parent 8fe596a commit 5af05a0
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/hotspot/cpu/loongarch/jvmciCodeInstaller_loongarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,24 +157,22 @@ void CodeInstaller::pd_relocate_JavaMethod(CodeBuffer &cbuf, methodHandle& metho
}
}

void CodeInstaller::pd_relocate_poll(address pc, jint mark, JVMCI_TRAPS) {
bool CodeInstaller::pd_relocate(address pc, jint mark) {
switch (mark) {
case POLL_NEAR:
JVMCI_ERROR("unimplemented");
break;
// This is unhandled and will be reported by the caller
return false;
case POLL_FAR:
_instructions->relocate(pc, relocInfo::poll_type);
break;
return true;
case POLL_RETURN_NEAR:
JVMCI_ERROR("unimplemented");
break;
// This is unhandled and will be reported by the caller
return false;
case POLL_RETURN_FAR:
_instructions->relocate(pc, relocInfo::poll_return_type);
break;
default:
JVMCI_ERROR("invalid mark value");
break;
return true;
}
return false;
}

// convert JVMCI register indices (as used in oop maps) to HotSpot registers
Expand Down

0 comments on commit 5af05a0

Please sign in to comment.