10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "code/codeBlob.hpp"
27 #include "code/codeCache.hpp"
28 #include "code/scopeDesc.hpp"
29 #include "code/vtableStubs.hpp"
30 #include "memory/resourceArea.hpp"
31 #include "oops/oop.inline.hpp"
32 #include "prims/jvmtiCodeBlobEvents.hpp"
33 #include "prims/jvmtiExport.hpp"
34 #include "runtime/handles.hpp"
35 #include "runtime/handles.inline.hpp"
36 #include "runtime/vmThread.hpp"
37
38 // Support class to collect a list of the non-nmethod CodeBlobs in
39 // the CodeCache.
40 //
41 // This class actually creates a list of JvmtiCodeBlobDesc - each JvmtiCodeBlobDesc
42 // describes a single CodeBlob in the CodeCache. Note that collection is
43 // done to a static list - this is because CodeCache::blobs_do is defined
44 // as void CodeCache::blobs_do(void f(CodeBlob* nm)) and hence requires
45 // a C or static method.
46 //
47 // Usage :-
48 //
49 // CodeBlobCollector collector;
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "code/codeBlob.hpp"
27 #include "code/codeCache.hpp"
28 #include "code/scopeDesc.hpp"
29 #include "code/vtableStubs.hpp"
30 #include "memory/allocation.inline.hpp"
31 #include "memory/resourceArea.hpp"
32 #include "oops/oop.inline.hpp"
33 #include "prims/jvmtiCodeBlobEvents.hpp"
34 #include "prims/jvmtiExport.hpp"
35 #include "runtime/handles.hpp"
36 #include "runtime/handles.inline.hpp"
37 #include "runtime/vmThread.hpp"
38
39 // Support class to collect a list of the non-nmethod CodeBlobs in
40 // the CodeCache.
41 //
42 // This class actually creates a list of JvmtiCodeBlobDesc - each JvmtiCodeBlobDesc
43 // describes a single CodeBlob in the CodeCache. Note that collection is
44 // done to a static list - this is because CodeCache::blobs_do is defined
45 // as void CodeCache::blobs_do(void f(CodeBlob* nm)) and hence requires
46 // a C or static method.
47 //
48 // Usage :-
49 //
50 // CodeBlobCollector collector;
|