equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 2014, 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. |
78 virtual void resize(size_t new_word_size) = 0; |
78 virtual void resize(size_t new_word_size) = 0; |
79 |
79 |
80 virtual void set_bottom(HeapWord* new_bottom) { |
80 virtual void set_bottom(HeapWord* new_bottom) { |
81 assert(new_bottom <= _end, |
81 assert(new_bottom <= _end, |
82 err_msg("new_bottom (" PTR_FORMAT ") > _end (" PTR_FORMAT ")", |
82 err_msg("new_bottom (" PTR_FORMAT ") > _end (" PTR_FORMAT ")", |
83 new_bottom, _end)); |
83 p2i(new_bottom), p2i(_end))); |
84 _bottom = new_bottom; |
84 _bottom = new_bottom; |
85 resize(pointer_delta(_end, _bottom)); |
85 resize(pointer_delta(_end, _bottom)); |
86 } |
86 } |
87 |
87 |
88 // Requires "addr" to be contained by a block, and returns the address of |
88 // Requires "addr" to be contained by a block, and returns the address of |