8195690: JNI GetObjectRefType doesn't handle NULL

Properly handle NULL, add some non-NULL preconditions.

Reviewed-by: dholmes, mdoerr
This commit is contained in:
Kim Barrett 2018-01-23 14:27:10 -05:00
parent 490d2ce747
commit 2d847b1eb6
7 changed files with 26 additions and 6 deletions

View file

@ -103,6 +103,7 @@ public:
};
// Locks _allocate_mutex.
// precondition: ptr != NULL.
EntryStatus allocation_status(const oop* ptr) const;
// Allocates and returns a new entry. Returns NULL if memory allocation