8149689: [JVMCI] CodeInstaller::pd_patch_DataSectionReference should be able to throw exceptions

Reviewed-by: kvn
This commit is contained in:
Christian Thalinger 2016-02-11 12:29:40 -10:00
parent 272bd6a401
commit 477e23c17f
6 changed files with 10 additions and 10 deletions

View file

@ -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);
}