comparison src/share/vm/oops/methodData.hpp @ 7969:1eae78177059

Merge
author jiangli
date Fri, 01 Feb 2013 15:25:37 -0500
parents 16fb9f942703
children d05ff4bf41b3
comparison
equal deleted inserted replaced
7968:44c5fcd9cb25 7969:1eae78177059
1 /* 1 /*
2 * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2000, 2013, 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.
30 #include "oops/method.hpp" 30 #include "oops/method.hpp"
31 #include "oops/oop.hpp" 31 #include "oops/oop.hpp"
32 #include "runtime/orderAccess.hpp" 32 #include "runtime/orderAccess.hpp"
33 33
34 class BytecodeStream; 34 class BytecodeStream;
35 class KlassSizeStats;
35 36
36 // The MethodData object collects counts and other profile information 37 // The MethodData object collects counts and other profile information
37 // during zeroth-tier (interpretive) and first-tier execution. 38 // during zeroth-tier (interpretive) and first-tier execution.
38 // The profile is used later by compilation heuristics. Some heuristics 39 // The profile is used later by compilation heuristics. Some heuristics
39 // enable use of aggressive (or "heroic") optimizations. An aggressive 40 // enable use of aggressive (or "heroic") optimizations. An aggressive
1287 void initialize(methodHandle method); 1288 void initialize(methodHandle method);
1288 1289
1289 // My size 1290 // My size
1290 int size_in_bytes() const { return _size; } 1291 int size_in_bytes() const { return _size; }
1291 int size() const { return align_object_size(align_size_up(_size, BytesPerWord)/BytesPerWord); } 1292 int size() const { return align_object_size(align_size_up(_size, BytesPerWord)/BytesPerWord); }
1293 #if INCLUDE_SERVICES
1294 void collect_statistics(KlassSizeStats *sz) const;
1295 #endif
1292 1296
1293 int creation_mileage() const { return _creation_mileage; } 1297 int creation_mileage() const { return _creation_mileage; }
1294 void set_creation_mileage(int x) { _creation_mileage = x; } 1298 void set_creation_mileage(int x) { _creation_mileage = x; }
1295 1299
1296 int invocation_count() { 1300 int invocation_count() {