mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 17:14:41 +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
|
@ -102,11 +102,11 @@ class oopDesc {
|
|||
inline bool is_a(Klass* k) const;
|
||||
|
||||
// Returns the actual oop size of the object
|
||||
inline int size();
|
||||
inline size_t size();
|
||||
|
||||
// Sometimes (for complicated concurrency-related reasons), it is useful
|
||||
// to be able to figure out the size of an object knowing its klass.
|
||||
inline int size_given_klass(Klass* klass);
|
||||
inline size_t size_given_klass(Klass* klass);
|
||||
|
||||
// type test operations (inlined in oop.inline.hpp)
|
||||
inline bool is_instance() const;
|
||||
|
@ -272,10 +272,10 @@ class oopDesc {
|
|||
inline void oop_iterate(OopClosureType* cl, MemRegion mr);
|
||||
|
||||
template <typename OopClosureType>
|
||||
inline int oop_iterate_size(OopClosureType* cl);
|
||||
inline size_t oop_iterate_size(OopClosureType* cl);
|
||||
|
||||
template <typename OopClosureType>
|
||||
inline int oop_iterate_size(OopClosureType* cl, MemRegion mr);
|
||||
inline size_t oop_iterate_size(OopClosureType* cl, MemRegion mr);
|
||||
|
||||
template <typename OopClosureType>
|
||||
inline void oop_iterate_backwards(OopClosureType* cl);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue