Relates :
|
|
Relates :
|
|
Relates :
|
The following functions contain expressions of the form (this == NULL) or (this != NULL) oopDesc::print_on oopDesc::print_value_on oopDesc::verify_on The compiler is free to elide those tests, since (this == NULL) can never be true; applying an ordinary member function to NULL invokes undefined behavior. These functions should be changed to be static member functions with an oop argument, with the test being applied to that argument.