mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
6730276: JDI_REGRESSION tests fail with "Error: count must be non-zero" error on x86
Modify assembler code to check for 0 count for all copy routines. Reviewed-by: never, ysr, jcoomes
This commit is contained in:
parent
1f4cfb029b
commit
9c7b430e11
11 changed files with 89 additions and 144 deletions
|
@ -404,7 +404,7 @@ void CodeSection::expand_locs(int new_capacity) {
|
|||
locs_start = REALLOC_RESOURCE_ARRAY(relocInfo, _locs_start, old_capacity, new_capacity);
|
||||
} else {
|
||||
locs_start = NEW_RESOURCE_ARRAY(relocInfo, new_capacity);
|
||||
Copy::conjoint_bytes(_locs_start, locs_start, old_capacity * sizeof(relocInfo));
|
||||
Copy::conjoint_jbytes(_locs_start, locs_start, old_capacity * sizeof(relocInfo));
|
||||
_locs_own = true;
|
||||
}
|
||||
_locs_start = locs_start;
|
||||
|
@ -581,7 +581,7 @@ csize_t CodeBuffer::copy_relocations_to(CodeBlob* dest) const {
|
|||
(HeapWord*)(buf+buf_offset),
|
||||
(lsize + HeapWordSize-1) / HeapWordSize);
|
||||
} else {
|
||||
Copy::conjoint_bytes(lstart, buf+buf_offset, lsize);
|
||||
Copy::conjoint_jbytes(lstart, buf+buf_offset, lsize);
|
||||
}
|
||||
}
|
||||
buf_offset += lsize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue