mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8149689: [JVMCI] CodeInstaller::pd_patch_DataSectionReference should be able to throw exceptions
Reviewed-by: kvn
This commit is contained in:
parent
272bd6a401
commit
477e23c17f
6 changed files with 10 additions and 10 deletions
|
@ -1091,7 +1091,7 @@ void CodeInstaller::site_DataPatch(CodeBuffer& buffer, jint pc_offset, Handle si
|
|||
} else if (reference->is_a(site_DataSectionReference::klass())) {
|
||||
int data_offset = site_DataSectionReference::offset(reference);
|
||||
if (0 <= data_offset && data_offset < _constants_size) {
|
||||
pd_patch_DataSectionReference(pc_offset, data_offset);
|
||||
pd_patch_DataSectionReference(pc_offset, data_offset, CHECK);
|
||||
} else {
|
||||
JVMCI_ERROR("data offset 0x%X points outside data section (size 0x%X)", data_offset, _constants_size);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue