Mercurial > hg > truffle
annotate graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/jvmci/HotSpotProfilingInfo.java @ 21535:90fd03612631
removed use of lambda in JVMCI/Graal initialization code
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Sun, 24 May 2015 16:40:29 +0200 |
parents | 1da7aef31a08 |
children |
rev | line source |
---|---|
4446 | 1 /* |
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. | |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
4 * | |
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 | |
7 * published by the Free Software Foundation. | |
8 * | |
9 * This code is distributed in the hope that it will be useful, but WITHOUT | |
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 */ | |
21526
1da7aef31a08
created com.oracle.graal.hotspot.jvmci package and moved classes destined for future JVMCI module into it (JBS:GRAAL-53)
Doug Simon <doug.simon@oracle.com>
parents:
21411
diff
changeset
|
23 package com.oracle.graal.hotspot.jvmci; |
4446 | 24 |
5507
dc71b06d09f8
Moving classes from cri.ri to api.meta.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
5506
diff
changeset
|
25 import com.oracle.graal.api.meta.*; |
5060
4ed4295ce15f
Update import statements.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
5059
diff
changeset
|
26 import com.oracle.graal.debug.*; |
14543
12eaf1a47a90
removed ResolvedJavaMethod.getCompilerStorage(); moved last compiled graph node count into profiling info (i.e. MethodData metadata)
Doug Simon <doug.simon@oracle.com>
parents:
13769
diff
changeset
|
27 import com.oracle.graal.nodes.*; |
4446 | 28 |
21411
082417ac43e4
removed com.oracle.graal.hotspot.server and uses of Serializable it depended upon (JBS:GRAAL-53)
Doug Simon <doug.simon@oracle.com>
parents:
18867
diff
changeset
|
29 public final class HotSpotProfilingInfo implements ProfilingInfo, HotSpotProxified { |
4446 | 30 |
4561
35ca3ade314d
enabled nmethod statistics for product build
Christian Haeubl <christian.haeubl@oracle.com>
parents:
4553
diff
changeset
|
31 private static final DebugMetric metricInsufficentSpace = Debug.metric("InsufficientSpaceForProfilingData"); |
4446 | 32 |
9928
a9311ec68721
Avoid graph caching if immature or no profiling information was used for graph building.
Christian Haeubl <haeubl@ssw.jku.at>
parents:
9760
diff
changeset
|
33 private final HotSpotMethodData methodData; |
a9311ec68721
Avoid graph caching if immature or no profiling information was used for graph building.
Christian Haeubl <haeubl@ssw.jku.at>
parents:
9760
diff
changeset
|
34 private final HotSpotResolvedJavaMethod method; |
a9311ec68721
Avoid graph caching if immature or no profiling information was used for graph building.
Christian Haeubl <haeubl@ssw.jku.at>
parents:
9760
diff
changeset
|
35 |
13769
af344056124f
Only use mature method datas
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
13217
diff
changeset
|
36 private boolean isMature; |
4446 | 37 private int position; |
38 private int hintPosition; | |
39 private int hintBCI; | |
40 private HotSpotMethodDataAccessor dataAccessor; | |
41 | |
13217
210f58e992a1
Use separate method profile for OSR compilations.
Roland Schatz <roland.schatz@oracle.com>
parents:
13216
diff
changeset
|
42 private boolean includeNormal; |
210f58e992a1
Use separate method profile for OSR compilations.
Roland Schatz <roland.schatz@oracle.com>
parents:
13216
diff
changeset
|
43 private boolean includeOSR; |
210f58e992a1
Use separate method profile for OSR compilations.
Roland Schatz <roland.schatz@oracle.com>
parents:
13216
diff
changeset
|
44 |
210f58e992a1
Use separate method profile for OSR compilations.
Roland Schatz <roland.schatz@oracle.com>
parents:
13216
diff
changeset
|
45 public HotSpotProfilingInfo(HotSpotMethodData methodData, HotSpotResolvedJavaMethod method, boolean includeNormal, boolean includeOSR) { |
4446 | 46 this.methodData = methodData; |
9928
a9311ec68721
Avoid graph caching if immature or no profiling information was used for graph building.
Christian Haeubl <haeubl@ssw.jku.at>
parents:
9760
diff
changeset
|
47 this.method = method; |
13217
210f58e992a1
Use separate method profile for OSR compilations.
Roland Schatz <roland.schatz@oracle.com>
parents:
13216
diff
changeset
|
48 this.includeNormal = includeNormal; |
210f58e992a1
Use separate method profile for OSR compilations.
Roland Schatz <roland.schatz@oracle.com>
parents:
13216
diff
changeset
|
49 this.includeOSR = includeOSR; |
13769
af344056124f
Only use mature method datas
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
13217
diff
changeset
|
50 this.isMature = methodData.isProfileMature(); |
4446 | 51 hintPosition = 0; |
52 hintBCI = -1; | |
53 } | |
54 | |
55 @Override | |
6539
2463eb24b644
Cleanup of Graal API: Rename methods so that it follows the getXxx naming convention and so that they are similar to the names of the java.lang.reflect classes. Remove unused methods.
Christian Wimmer <christian.wimmer@oracle.com>
parents:
5719
diff
changeset
|
56 public int getCodeSize() { |
9928
a9311ec68721
Avoid graph caching if immature or no profiling information was used for graph building.
Christian Haeubl <haeubl@ssw.jku.at>
parents:
9760
diff
changeset
|
57 return method.getCodeSize(); |
5346
4c3d953f8131
added mechanism (enabled by -G:PICache and -G:PiFilter) for saving/loading method profiling info to/from disk
Doug Simon <doug.simon@oracle.com>
parents:
5321
diff
changeset
|
58 } |
4c3d953f8131
added mechanism (enabled by -G:PICache and -G:PiFilter) for saving/loading method profiling info to/from disk
Doug Simon <doug.simon@oracle.com>
parents:
5321
diff
changeset
|
59 |
4c3d953f8131
added mechanism (enabled by -G:PICache and -G:PiFilter) for saving/loading method profiling info to/from disk
Doug Simon <doug.simon@oracle.com>
parents:
5321
diff
changeset
|
60 @Override |
5541
b4c406861c33
More renamings to drop Ri* prefix completely. Deleted graph.BitMap class and replaced with java.util.BitSet.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
5530
diff
changeset
|
61 public JavaTypeProfile getTypeProfile(int bci) { |
13769
af344056124f
Only use mature method datas
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
13217
diff
changeset
|
62 if (!isMature) { |
af344056124f
Only use mature method datas
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
13217
diff
changeset
|
63 return null; |
af344056124f
Only use mature method datas
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
13217
diff
changeset
|
64 } |
4450
d585b608bd78
more efficient methodData access
Christian Haeubl <christian.haeubl@oracle.com>
parents:
4447
diff
changeset
|
65 findBCI(bci, false); |
4446 | 66 return dataAccessor.getTypeProfile(methodData, position); |
67 } | |
68 | |
69 @Override | |
9760
c76b43ed5089
Added infrastructure for recording invoked methods in the profiling information.
Christian Haeubl <haeubl@ssw.jku.at>
parents:
8610
diff
changeset
|
70 public JavaMethodProfile getMethodProfile(int bci) { |
13769
af344056124f
Only use mature method datas
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
13217
diff
changeset
|
71 if (!isMature) { |
af344056124f
Only use mature method datas
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
13217
diff
changeset
|
72 return null; |
af344056124f
Only use mature method datas
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
13217
diff
changeset
|
73 } |
9760
c76b43ed5089
Added infrastructure for recording invoked methods in the profiling information.
Christian Haeubl <haeubl@ssw.jku.at>
parents:
8610
diff
changeset
|
74 findBCI(bci, false); |
c76b43ed5089
Added infrastructure for recording invoked methods in the profiling information.
Christian Haeubl <haeubl@ssw.jku.at>
parents:
8610
diff
changeset
|
75 return dataAccessor.getMethodProfile(methodData, position); |
c76b43ed5089
Added infrastructure for recording invoked methods in the profiling information.
Christian Haeubl <haeubl@ssw.jku.at>
parents:
8610
diff
changeset
|
76 } |
c76b43ed5089
Added infrastructure for recording invoked methods in the profiling information.
Christian Haeubl <haeubl@ssw.jku.at>
parents:
8610
diff
changeset
|
77 |
c76b43ed5089
Added infrastructure for recording invoked methods in the profiling information.
Christian Haeubl <haeubl@ssw.jku.at>
parents:
8610
diff
changeset
|
78 @Override |
4446 | 79 public double getBranchTakenProbability(int bci) { |
13769
af344056124f
Only use mature method datas
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
13217
diff
changeset
|
80 if (!isMature) { |
af344056124f
Only use mature method datas
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
13217
diff
changeset
|
81 return -1; |
af344056124f
Only use mature method datas
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
13217
diff
changeset
|
82 } |
4450
d585b608bd78
more efficient methodData access
Christian Haeubl <christian.haeubl@oracle.com>
parents:
4447
diff
changeset
|
83 findBCI(bci, false); |
4446 | 84 return dataAccessor.getBranchTakenProbability(methodData, position); |
85 } | |
86 | |
87 @Override | |
88 public double[] getSwitchProbabilities(int bci) { | |
13769
af344056124f
Only use mature method datas
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
13217
diff
changeset
|
89 if (!isMature) { |
af344056124f
Only use mature method datas
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
13217
diff
changeset
|
90 return null; |
af344056124f
Only use mature method datas
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
13217
diff
changeset
|
91 } |
4450
d585b608bd78
more efficient methodData access
Christian Haeubl <christian.haeubl@oracle.com>
parents:
4447
diff
changeset
|
92 findBCI(bci, false); |
4446 | 93 return dataAccessor.getSwitchProbabilities(methodData, position); |
94 } | |
95 | |
96 @Override | |
8610
5407d1dd6450
API to access nullness profiling information for instanceof, checkcast, and aastore
Christian Haeubl <haeubl@ssw.jku.at>
parents:
7530
diff
changeset
|
97 public TriState getExceptionSeen(int bci) { |
4450
d585b608bd78
more efficient methodData access
Christian Haeubl <christian.haeubl@oracle.com>
parents:
4447
diff
changeset
|
98 findBCI(bci, true); |
4457
5acf4a974e4a
fixed framestate for inlining multiple methods
Christian Haeubl <christian.haeubl@oracle.com>
parents:
4450
diff
changeset
|
99 return dataAccessor.getExceptionSeen(methodData, position); |
4446 | 100 } |
101 | |
102 @Override | |
8610
5407d1dd6450
API to access nullness profiling information for instanceof, checkcast, and aastore
Christian Haeubl <haeubl@ssw.jku.at>
parents:
7530
diff
changeset
|
103 public TriState getNullSeen(int bci) { |
5407d1dd6450
API to access nullness profiling information for instanceof, checkcast, and aastore
Christian Haeubl <haeubl@ssw.jku.at>
parents:
7530
diff
changeset
|
104 findBCI(bci, false); |
5407d1dd6450
API to access nullness profiling information for instanceof, checkcast, and aastore
Christian Haeubl <haeubl@ssw.jku.at>
parents:
7530
diff
changeset
|
105 return dataAccessor.getNullSeen(methodData, position); |
5407d1dd6450
API to access nullness profiling information for instanceof, checkcast, and aastore
Christian Haeubl <haeubl@ssw.jku.at>
parents:
7530
diff
changeset
|
106 } |
5407d1dd6450
API to access nullness profiling information for instanceof, checkcast, and aastore
Christian Haeubl <haeubl@ssw.jku.at>
parents:
7530
diff
changeset
|
107 |
5407d1dd6450
API to access nullness profiling information for instanceof, checkcast, and aastore
Christian Haeubl <haeubl@ssw.jku.at>
parents:
7530
diff
changeset
|
108 @Override |
4446 | 109 public int getExecutionCount(int bci) { |
13769
af344056124f
Only use mature method datas
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
13217
diff
changeset
|
110 if (!isMature) { |
af344056124f
Only use mature method datas
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
13217
diff
changeset
|
111 return -1; |
af344056124f
Only use mature method datas
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
13217
diff
changeset
|
112 } |
4450
d585b608bd78
more efficient methodData access
Christian Haeubl <christian.haeubl@oracle.com>
parents:
4447
diff
changeset
|
113 findBCI(bci, false); |
4446 | 114 return dataAccessor.getExecutionCount(methodData, position); |
115 } | |
116 | |
5114
dad1ac9dba7d
finished first implementation of disabling runtime feedback selectively based on deoptimization history
Christian Haeubl <christian.haeubl@oracle.com>
parents:
5061
diff
changeset
|
117 @Override |
5541
b4c406861c33
More renamings to drop Ri* prefix completely. Deleted graph.BitMap class and replaced with java.util.BitSet.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
5530
diff
changeset
|
118 public int getDeoptimizationCount(DeoptimizationReason reason) { |
13217
210f58e992a1
Use separate method profile for OSR compilations.
Roland Schatz <roland.schatz@oracle.com>
parents:
13216
diff
changeset
|
119 int count = 0; |
210f58e992a1
Use separate method profile for OSR compilations.
Roland Schatz <roland.schatz@oracle.com>
parents:
13216
diff
changeset
|
120 if (includeNormal) { |
210f58e992a1
Use separate method profile for OSR compilations.
Roland Schatz <roland.schatz@oracle.com>
parents:
13216
diff
changeset
|
121 count += methodData.getDeoptimizationCount(reason); |
210f58e992a1
Use separate method profile for OSR compilations.
Roland Schatz <roland.schatz@oracle.com>
parents:
13216
diff
changeset
|
122 } |
210f58e992a1
Use separate method profile for OSR compilations.
Roland Schatz <roland.schatz@oracle.com>
parents:
13216
diff
changeset
|
123 if (includeOSR) { |
210f58e992a1
Use separate method profile for OSR compilations.
Roland Schatz <roland.schatz@oracle.com>
parents:
13216
diff
changeset
|
124 count += methodData.getOSRDeoptimizationCount(reason); |
210f58e992a1
Use separate method profile for OSR compilations.
Roland Schatz <roland.schatz@oracle.com>
parents:
13216
diff
changeset
|
125 } |
210f58e992a1
Use separate method profile for OSR compilations.
Roland Schatz <roland.schatz@oracle.com>
parents:
13216
diff
changeset
|
126 return count; |
5114
dad1ac9dba7d
finished first implementation of disabling runtime feedback selectively based on deoptimization history
Christian Haeubl <christian.haeubl@oracle.com>
parents:
5061
diff
changeset
|
127 } |
dad1ac9dba7d
finished first implementation of disabling runtime feedback selectively based on deoptimization history
Christian Haeubl <christian.haeubl@oracle.com>
parents:
5061
diff
changeset
|
128 |
4450
d585b608bd78
more efficient methodData access
Christian Haeubl <christian.haeubl@oracle.com>
parents:
4447
diff
changeset
|
129 private void findBCI(int targetBCI, boolean searchExtraData) { |
4446 | 130 assert targetBCI >= 0 : "invalid BCI"; |
131 | |
132 if (methodData.hasNormalData()) { | |
133 int currentPosition = targetBCI < hintBCI ? 0 : hintPosition; | |
134 HotSpotMethodDataAccessor currentAccessor; | |
135 while ((currentAccessor = methodData.getNormalData(currentPosition)) != null) { | |
136 int currentBCI = currentAccessor.getBCI(methodData, currentPosition); | |
137 if (currentBCI == targetBCI) { | |
138 normalDataFound(currentAccessor, currentPosition, currentBCI); | |
139 return; | |
140 } else if (currentBCI > targetBCI) { | |
141 break; | |
142 } | |
143 currentPosition = currentPosition + currentAccessor.getSize(methodData, currentPosition); | |
144 } | |
145 } | |
146 | |
4527
a0cca63cd366
fixed exceptionSeen profiling information
Christian Haeubl <christian.haeubl@oracle.com>
parents:
4476
diff
changeset
|
147 boolean exceptionPossiblyNotRecorded = false; |
4450
d585b608bd78
more efficient methodData access
Christian Haeubl <christian.haeubl@oracle.com>
parents:
4447
diff
changeset
|
148 if (searchExtraData && methodData.hasExtraData()) { |
4476
00efac2934d3
methodData bugfix
Christian Haeubl <christian.haeubl@oracle.com>
parents:
4457
diff
changeset
|
149 int currentPosition = methodData.getExtraDataBeginOffset(); |
4446 | 150 HotSpotMethodDataAccessor currentAccessor; |
151 while ((currentAccessor = methodData.getExtraData(currentPosition)) != null) { | |
152 int currentBCI = currentAccessor.getBCI(methodData, currentPosition); | |
153 if (currentBCI == targetBCI) { | |
154 extraDataFound(currentAccessor, currentPosition); | |
155 return; | |
156 } | |
157 currentPosition = currentPosition + currentAccessor.getSize(methodData, currentPosition); | |
158 } | |
4527
a0cca63cd366
fixed exceptionSeen profiling information
Christian Haeubl <christian.haeubl@oracle.com>
parents:
4476
diff
changeset
|
159 |
4553
7d0d849abf80
added option to summarize debug values
Christian Haeubl <christian.haeubl@oracle.com>
parents:
4527
diff
changeset
|
160 if (!methodData.isWithin(currentPosition)) { |
7d0d849abf80
added option to summarize debug values
Christian Haeubl <christian.haeubl@oracle.com>
parents:
4527
diff
changeset
|
161 exceptionPossiblyNotRecorded = true; |
4561
35ca3ade314d
enabled nmethod statistics for product build
Christian Haeubl <christian.haeubl@oracle.com>
parents:
4553
diff
changeset
|
162 metricInsufficentSpace.increment(); |
4553
7d0d849abf80
added option to summarize debug values
Christian Haeubl <christian.haeubl@oracle.com>
parents:
4527
diff
changeset
|
163 } |
4446 | 164 } |
165 | |
4527
a0cca63cd366
fixed exceptionSeen profiling information
Christian Haeubl <christian.haeubl@oracle.com>
parents:
4476
diff
changeset
|
166 noDataFound(exceptionPossiblyNotRecorded); |
4446 | 167 } |
168 | |
169 private void normalDataFound(HotSpotMethodDataAccessor data, int pos, int bci) { | |
170 setCurrentData(data, pos); | |
171 this.hintPosition = position; | |
172 this.hintBCI = bci; | |
173 } | |
174 | |
175 private void extraDataFound(HotSpotMethodDataAccessor data, int pos) { | |
176 setCurrentData(data, pos); | |
177 } | |
178 | |
4564
8fc6920e064b
avoid recursive inlining, escape analysis does no longer restart inlining with level 0, bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
4561
diff
changeset
|
179 private void noDataFound(boolean exceptionPossiblyNotRecorded) { |
8fc6920e064b
avoid recursive inlining, escape analysis does no longer restart inlining with level 0, bugfixes
Christian Haeubl <christian.haeubl@oracle.com>
parents:
4561
diff
changeset
|
180 HotSpotMethodDataAccessor accessor = HotSpotMethodData.getNoDataAccessor(exceptionPossiblyNotRecorded); |
4527
a0cca63cd366
fixed exceptionSeen profiling information
Christian Haeubl <christian.haeubl@oracle.com>
parents:
4476
diff
changeset
|
181 setCurrentData(accessor, -1); |
4446 | 182 } |
183 | |
184 private void setCurrentData(HotSpotMethodDataAccessor dataAccessor, int position) { | |
185 this.dataAccessor = dataAccessor; | |
186 this.position = position; | |
187 } | |
5346
4c3d953f8131
added mechanism (enabled by -G:PICache and -G:PiFilter) for saving/loading method profiling info to/from disk
Doug Simon <doug.simon@oracle.com>
parents:
5321
diff
changeset
|
188 |
4c3d953f8131
added mechanism (enabled by -G:PICache and -G:PiFilter) for saving/loading method profiling info to/from disk
Doug Simon <doug.simon@oracle.com>
parents:
5321
diff
changeset
|
189 @Override |
9928
a9311ec68721
Avoid graph caching if immature or no profiling information was used for graph building.
Christian Haeubl <haeubl@ssw.jku.at>
parents:
9760
diff
changeset
|
190 public boolean isMature() { |
13769
af344056124f
Only use mature method datas
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
13217
diff
changeset
|
191 return isMature; |
af344056124f
Only use mature method datas
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
13217
diff
changeset
|
192 } |
af344056124f
Only use mature method datas
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
13217
diff
changeset
|
193 |
af344056124f
Only use mature method datas
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
13217
diff
changeset
|
194 public void ignoreMature() { |
af344056124f
Only use mature method datas
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
13217
diff
changeset
|
195 isMature = true; |
9928
a9311ec68721
Avoid graph caching if immature or no profiling information was used for graph building.
Christian Haeubl <haeubl@ssw.jku.at>
parents:
9760
diff
changeset
|
196 } |
a9311ec68721
Avoid graph caching if immature or no profiling information was used for graph building.
Christian Haeubl <haeubl@ssw.jku.at>
parents:
9760
diff
changeset
|
197 |
a9311ec68721
Avoid graph caching if immature or no profiling information was used for graph building.
Christian Haeubl <haeubl@ssw.jku.at>
parents:
9760
diff
changeset
|
198 @Override |
5346
4c3d953f8131
added mechanism (enabled by -G:PICache and -G:PiFilter) for saving/loading method profiling info to/from disk
Doug Simon <doug.simon@oracle.com>
parents:
5321
diff
changeset
|
199 public String toString() { |
16490
cac0a7d1c325
moved profileToString(ProfilingInfo info, ResolvedJavaMethod method, String sep) from MetaUtil to be a default method in ProfilingInfo
Doug Simon <doug.simon@oracle.com>
parents:
14543
diff
changeset
|
200 return "HotSpotProfilingInfo<" + this.toString(null, "; ") + ">"; |
5346
4c3d953f8131
added mechanism (enabled by -G:PICache and -G:PiFilter) for saving/loading method profiling info to/from disk
Doug Simon <doug.simon@oracle.com>
parents:
5321
diff
changeset
|
201 } |
13769
af344056124f
Only use mature method datas
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
13217
diff
changeset
|
202 |
af344056124f
Only use mature method datas
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
13217
diff
changeset
|
203 @Override |
af344056124f
Only use mature method datas
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
13217
diff
changeset
|
204 public void setMature() { |
af344056124f
Only use mature method datas
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
13217
diff
changeset
|
205 isMature = true; |
af344056124f
Only use mature method datas
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
13217
diff
changeset
|
206 } |
14543
12eaf1a47a90
removed ResolvedJavaMethod.getCompilerStorage(); moved last compiled graph node count into profiling info (i.e. MethodData metadata)
Doug Simon <doug.simon@oracle.com>
parents:
13769
diff
changeset
|
207 |
12eaf1a47a90
removed ResolvedJavaMethod.getCompilerStorage(); moved last compiled graph node count into profiling info (i.e. MethodData metadata)
Doug Simon <doug.simon@oracle.com>
parents:
13769
diff
changeset
|
208 @Override |
12eaf1a47a90
removed ResolvedJavaMethod.getCompilerStorage(); moved last compiled graph node count into profiling info (i.e. MethodData metadata)
Doug Simon <doug.simon@oracle.com>
parents:
13769
diff
changeset
|
209 public boolean setCompilerIRSize(Class<?> irType, int size) { |
12eaf1a47a90
removed ResolvedJavaMethod.getCompilerStorage(); moved last compiled graph node count into profiling info (i.e. MethodData metadata)
Doug Simon <doug.simon@oracle.com>
parents:
13769
diff
changeset
|
210 if (irType == StructuredGraph.class) { |
12eaf1a47a90
removed ResolvedJavaMethod.getCompilerStorage(); moved last compiled graph node count into profiling info (i.e. MethodData metadata)
Doug Simon <doug.simon@oracle.com>
parents:
13769
diff
changeset
|
211 methodData.setCompiledGraphSize(size); |
12eaf1a47a90
removed ResolvedJavaMethod.getCompilerStorage(); moved last compiled graph node count into profiling info (i.e. MethodData metadata)
Doug Simon <doug.simon@oracle.com>
parents:
13769
diff
changeset
|
212 return true; |
12eaf1a47a90
removed ResolvedJavaMethod.getCompilerStorage(); moved last compiled graph node count into profiling info (i.e. MethodData metadata)
Doug Simon <doug.simon@oracle.com>
parents:
13769
diff
changeset
|
213 } |
12eaf1a47a90
removed ResolvedJavaMethod.getCompilerStorage(); moved last compiled graph node count into profiling info (i.e. MethodData metadata)
Doug Simon <doug.simon@oracle.com>
parents:
13769
diff
changeset
|
214 return false; |
12eaf1a47a90
removed ResolvedJavaMethod.getCompilerStorage(); moved last compiled graph node count into profiling info (i.e. MethodData metadata)
Doug Simon <doug.simon@oracle.com>
parents:
13769
diff
changeset
|
215 } |
12eaf1a47a90
removed ResolvedJavaMethod.getCompilerStorage(); moved last compiled graph node count into profiling info (i.e. MethodData metadata)
Doug Simon <doug.simon@oracle.com>
parents:
13769
diff
changeset
|
216 |
12eaf1a47a90
removed ResolvedJavaMethod.getCompilerStorage(); moved last compiled graph node count into profiling info (i.e. MethodData metadata)
Doug Simon <doug.simon@oracle.com>
parents:
13769
diff
changeset
|
217 @Override |
12eaf1a47a90
removed ResolvedJavaMethod.getCompilerStorage(); moved last compiled graph node count into profiling info (i.e. MethodData metadata)
Doug Simon <doug.simon@oracle.com>
parents:
13769
diff
changeset
|
218 public int getCompilerIRSize(Class<?> irType) { |
12eaf1a47a90
removed ResolvedJavaMethod.getCompilerStorage(); moved last compiled graph node count into profiling info (i.e. MethodData metadata)
Doug Simon <doug.simon@oracle.com>
parents:
13769
diff
changeset
|
219 if (irType == StructuredGraph.class) { |
12eaf1a47a90
removed ResolvedJavaMethod.getCompilerStorage(); moved last compiled graph node count into profiling info (i.e. MethodData metadata)
Doug Simon <doug.simon@oracle.com>
parents:
13769
diff
changeset
|
220 return methodData.getCompiledGraphSize(); |
12eaf1a47a90
removed ResolvedJavaMethod.getCompilerStorage(); moved last compiled graph node count into profiling info (i.e. MethodData metadata)
Doug Simon <doug.simon@oracle.com>
parents:
13769
diff
changeset
|
221 } |
12eaf1a47a90
removed ResolvedJavaMethod.getCompilerStorage(); moved last compiled graph node count into profiling info (i.e. MethodData metadata)
Doug Simon <doug.simon@oracle.com>
parents:
13769
diff
changeset
|
222 return -1; |
12eaf1a47a90
removed ResolvedJavaMethod.getCompilerStorage(); moved last compiled graph node count into profiling info (i.e. MethodData metadata)
Doug Simon <doug.simon@oracle.com>
parents:
13769
diff
changeset
|
223 } |
4446 | 224 } |