equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
73 void ImmutableSpace::verify() { |
73 void ImmutableSpace::verify() { |
74 HeapWord* p = bottom(); |
74 HeapWord* p = bottom(); |
75 HeapWord* t = end(); |
75 HeapWord* t = end(); |
76 HeapWord* prev_p = NULL; |
76 HeapWord* prev_p = NULL; |
77 while (p < t) { |
77 while (p < t) { |
78 oop(p)->verify(); |
78 oopDesc::verify(oop(p)); |
79 prev_p = p; |
79 prev_p = p; |
80 p += oop(p)->size(); |
80 p += oop(p)->size(); |
81 } |
81 } |
82 guarantee(p == end(), "end of last object must match end of space"); |
82 guarantee(p == end(), "end of last object must match end of space"); |
83 } |
83 } |