equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2001, 2017, 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. |
248 void MutableSpace::verify() { |
248 void MutableSpace::verify() { |
249 HeapWord* p = bottom(); |
249 HeapWord* p = bottom(); |
250 HeapWord* t = top(); |
250 HeapWord* t = top(); |
251 HeapWord* prev_p = NULL; |
251 HeapWord* prev_p = NULL; |
252 while (p < t) { |
252 while (p < t) { |
253 oop(p)->verify(); |
253 oopDesc::verify(oop(p)); |
254 prev_p = p; |
254 prev_p = p; |
255 p += oop(p)->size(); |
255 p += oop(p)->size(); |
256 } |
256 } |
257 guarantee(p == top(), "end of last object must match end of space"); |
257 guarantee(p == top(), "end of last object must match end of space"); |
258 } |
258 } |