mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 01:24:33 +02:00
8202171: Some oopDesc functions compare this with NULL
Add Method* parameter and made verify* methods static to avoid 'this' comparison with NULL, Added NULL checks before calling print_on() methods. Reviewed-by: kbarrett, coleenp
This commit is contained in:
parent
b71f3e7104
commit
38db1d1620
15 changed files with 73 additions and 39 deletions
|
@ -226,8 +226,8 @@ class oopDesc {
|
|||
void release_address_field_put(int offset, address contents);
|
||||
|
||||
// printing functions for VM debugging
|
||||
void print_on(outputStream* st) const; // First level print
|
||||
void print_value_on(outputStream* st) const; // Second level print.
|
||||
void print_on(outputStream* st) const; // First level print
|
||||
void print_value_on(outputStream* st) const; // Second level print.
|
||||
void print_address_on(outputStream* st) const; // Address printing
|
||||
|
||||
// printing on default output stream
|
||||
|
@ -240,8 +240,8 @@ class oopDesc {
|
|||
char* print_value_string();
|
||||
|
||||
// verification operations
|
||||
void verify_on(outputStream* st);
|
||||
void verify();
|
||||
static void verify_on(outputStream* st, oopDesc* oop_desc);
|
||||
static void verify(oopDesc* oopDesc);
|
||||
|
||||
// locking operations
|
||||
inline bool is_locked() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue