1 /* |
1 /* |
2 * Copyright (c) 1998, 2005, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2010, 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. |
68 int element_count() { |
68 int element_count() { |
69 // there is always a NULL virtually present as first object |
69 // there is always a NULL virtually present as first object |
70 return _handles->length() + first_index; |
70 return _handles->length() + first_index; |
71 } |
71 } |
72 |
72 |
73 // copy the generated oop table to CodeBlob |
73 // copy the generated oop table to nmethod |
74 void copy_to(CodeBlob* code); // => code->copy_oops(_handles) |
74 void copy_to(nmethod* nm); // => nm->copy_oops(_handles) |
75 |
75 |
76 bool is_unused() { return _handles == NULL && !_complete; } |
76 bool is_unused() { return _handles == NULL && !_complete; } |
77 #ifdef ASSERT |
77 #ifdef ASSERT |
78 bool is_complete() { return _complete; } |
78 bool is_complete() { return _complete; } |
79 #endif |
79 #endif |