comparison src/share/vm/code/oopRecorder.hpp @ 1563:1a5913bf5e19

6951083: oops and relocations should part of nmethod not CodeBlob Summary: This moves the oops from Codeblob to nmethod. Reviewed-by: kvn, never
author twisti
date Thu, 20 May 2010 06:34:23 -0700
parents a61af66fc99e
children e9ff18c4ace7
comparison
equal deleted inserted replaced
1544:1a88d3c58e1d 1563:1a5913bf5e19
1 /* 1 /*
2 * Copyright 1998-2005 Sun Microsystems, Inc. All Rights Reserved. 2 * Copyright 1998-2010 Sun Microsystems, Inc. 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