mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 10:04:42 +02:00
4718400
: Many quantities are held as signed that should be unsigned
Reviewed-by: coleenp, rbackman, dholmes
This commit is contained in:
parent
168081efc8
commit
93be099ccb
52 changed files with 95 additions and 110 deletions
|
@ -429,7 +429,7 @@ void HeapShared::copy_open_objects(GrowableArray<MemRegion>* open_regions) {
|
|||
// Copy _pending_archive_roots into an objArray
|
||||
void HeapShared::copy_roots() {
|
||||
int length = _pending_roots != NULL ? _pending_roots->length() : 0;
|
||||
int size = objArrayOopDesc::object_size(length);
|
||||
size_t size = objArrayOopDesc::object_size(length);
|
||||
Klass* k = Universe::objectArrayKlassObj(); // already relocated to point to archived klass
|
||||
HeapWord* mem = G1CollectedHeap::heap()->archive_mem_allocate(size);
|
||||
|
||||
|
@ -448,7 +448,7 @@ void HeapShared::copy_roots() {
|
|||
for (int i = 0; i < length; i++) {
|
||||
roots()->obj_at_put(i, _pending_roots->at(i));
|
||||
}
|
||||
log_info(cds)("archived obj roots[%d] = %d words, klass = %p, obj = %p", length, size, k, mem);
|
||||
log_info(cds)("archived obj roots[%d] = " SIZE_FORMAT " words, klass = %p, obj = %p", length, size, k, mem);
|
||||
}
|
||||
|
||||
void HeapShared::init_narrow_oop_decoding(address base, int shift) {
|
||||
|
@ -912,7 +912,7 @@ class WalkOopAndArchiveClosure: public BasicOopIterateClosure {
|
|||
|
||||
if (!_record_klasses_only && log_is_enabled(Debug, cds, heap)) {
|
||||
ResourceMark rm;
|
||||
log_debug(cds, heap)("(%d) %s[" SIZE_FORMAT "] ==> " PTR_FORMAT " size %d %s", _level,
|
||||
log_debug(cds, heap)("(%d) %s[" SIZE_FORMAT "] ==> " PTR_FORMAT " size " SIZE_FORMAT " %s", _level,
|
||||
_orig_referencing_obj->klass()->external_name(), field_delta,
|
||||
p2i(obj), obj->size() * HeapWordSize, obj->klass()->external_name());
|
||||
LogTarget(Trace, cds, heap) log;
|
||||
|
@ -1023,7 +1023,7 @@ oop HeapShared::archive_reachable_objects_from(int level,
|
|||
ResourceMark rm;
|
||||
log_error(cds, heap)(
|
||||
"Cannot archive the sub-graph referenced from %s object ("
|
||||
PTR_FORMAT ") size %d, skipped.",
|
||||
PTR_FORMAT ") size " SIZE_FORMAT ", skipped.",
|
||||
orig_obj->klass()->external_name(), p2i(orig_obj), orig_obj->size() * HeapWordSize);
|
||||
if (level == 1) {
|
||||
// Don't archive a subgraph root that's too big. For archives static fields, that's OK
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue