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

@ -993,7 +993,7 @@ public:
GrowableArray<Klass*>* compute_secondary_supers(int num_extra_slots,
Array<InstanceKlass*>* transitive_interfaces);
bool can_be_primary_super_slow() const;
int oop_size(oop obj) const { return size_helper(); }
size_t oop_size(oop obj) const { return size_helper(); }
// slow because it's a virtual call and used for verifying the layout_helper.
// Using the layout_helper bits, we can call is_instance_klass without a virtual call.
DEBUG_ONLY(bool is_instance_klass_slow() const { return true; })