4718400: Many quantities are held as signed that should be unsigned

Reviewed-by: coleenp, rbackman, dholmes
This commit is contained in:
Stefan Karlsson 2021-10-27 13:23:24 +00:00
parent 168081efc8
commit 93be099ccb
52 changed files with 95 additions and 110 deletions

View file

@ -660,7 +660,7 @@ JVM_ENTRY(jobject, JVM_Clone(JNIEnv* env, jobject handle))
}
// Make shallow object copy
const int size = obj->size();
const size_t size = obj->size();
oop new_obj_oop = NULL;
if (obj->is_array()) {
const int length = ((arrayOop)obj())->length();