mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 09:34:38 +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
|
@ -311,7 +311,7 @@ void ThreadLocalAllocBuffer::verify() {
|
|||
HeapWord* t = top();
|
||||
HeapWord* prev_p = NULL;
|
||||
while (p < t) {
|
||||
oop(p)->verify();
|
||||
oopDesc::verify(oop(p));
|
||||
prev_p = p;
|
||||
p += oop(p)->size();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue