Mercurial > hg > truffle
comparison src/share/vm/code/oopRecorder.hpp @ 1579:e9ff18c4ace7
Merge
author | jrose |
---|---|
date | Wed, 02 Jun 2010 22:45:42 -0700 |
parents | c18cbe5936b8 1a5913bf5e19 |
children | f95d63e2154a |
comparison
equal
deleted
inserted
replaced
1562:dfe27f03244a | 1579:e9ff18c4ace7 |
---|---|
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 |