comparison jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotMethodData.java @ 23782:286dce1eca9b

Sync with JDK9 MDO changes
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Wed, 05 Oct 2016 11:38:45 -0700
parents c64c9fac1ab9
children
comparison
equal deleted inserted replaced
23781:276858bc6ac6 23782:286dce1eca9b
109 109
110 public int getDecompileCount() { 110 public int getDecompileCount() {
111 return UNSAFE.getInt(metaspaceMethodData + config.methodDataDecompiles); 111 return UNSAFE.getInt(metaspaceMethodData + config.methodDataDecompiles);
112 } 112 }
113 113
114 public int getOverflowCompileCount() { 114 public int getOverflowRecompileCount() {
115 return UNSAFE.getInt(metaspaceMethodData + config.methodDataOverflowRecompiles); 115 return UNSAFE.getInt(metaspaceMethodData + config.methodDataOverflowRecompiles);
116 } 116 }
117 117
118 public int getOverflowTrapsCount() { 118 public int getOverflowTrapCount() {
119 return UNSAFE.getInt(metaspaceMethodData + config.methodDataOverflowTraps); 119 return UNSAFE.getInt(metaspaceMethodData + config.methodDataOverflowTraps);
120 } 120 }
121 121
122 public HotSpotMethodDataAccessor getNormalData(int position) { 122 public HotSpotMethodDataAccessor getNormalData(int position) {
123 if (position >= normalDataSize()) { 123 if (position >= normalDataSize()) {
228 String nlIndent = String.format("%n%38s", ""); 228 String nlIndent = String.format("%n%38s", "");
229 sb.append("Raw method data for "); 229 sb.append("Raw method data for ");
230 sb.append(method.format("%H.%n(%p)")); 230 sb.append(method.format("%H.%n(%p)"));
231 sb.append(":"); 231 sb.append(":");
232 sb.append(nl); 232 sb.append(nl);
233 sb.append(String.format("nof_decompiles(%d) nof_overflow_recompiles(%d) nof_overflow_traps(%d)%n",
234 getDecompileCount(), getOverflowRecompileCount(), getOverflowTrapCount()));
233 if (hasNormalData()) { 235 if (hasNormalData()) {
234 int pos = 0; 236 int pos = 0;
235 HotSpotMethodDataAccessor data; 237 HotSpotMethodDataAccessor data;
236 while ((data = getNormalData(pos)) != null) { 238 while ((data = getNormalData(pos)) != null) {
237 if (pos != 0) { 239 if (pos != 0) {