Mercurial > hg > graal-jvmci-8
comparison jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotMethodData.java @ 23765:c64c9fac1ab9
Expose decompile counts in MDO
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Wed, 28 Sep 2016 09:22:23 -0700 |
parents | aaed278a9cf1 |
children | 286dce1eca9b |
comparison
equal
deleted
inserted
replaced
23764:e687b7d93805 | 23765:c64c9fac1ab9 |
---|---|
105 HotSpotMetaAccessProvider metaAccess = (HotSpotMetaAccessProvider) runtime().getHostJVMCIBackend().getMetaAccess(); | 105 HotSpotMetaAccessProvider metaAccess = (HotSpotMetaAccessProvider) runtime().getHostJVMCIBackend().getMetaAccess(); |
106 int reasonIndex = metaAccess.convertDeoptReason(reason); | 106 int reasonIndex = metaAccess.convertDeoptReason(reason); |
107 return UNSAFE.getByte(metaspaceMethodData + config.methodDataOopTrapHistoryOffset + config.deoptReasonOSROffset + reasonIndex) & 0xFF; | 107 return UNSAFE.getByte(metaspaceMethodData + config.methodDataOopTrapHistoryOffset + config.deoptReasonOSROffset + reasonIndex) & 0xFF; |
108 } | 108 } |
109 | 109 |
110 public int getDecompileCount() { | |
111 return UNSAFE.getInt(metaspaceMethodData + config.methodDataDecompiles); | |
112 } | |
113 | |
114 public int getOverflowCompileCount() { | |
115 return UNSAFE.getInt(metaspaceMethodData + config.methodDataOverflowRecompiles); | |
116 } | |
117 | |
118 public int getOverflowTrapsCount() { | |
119 return UNSAFE.getInt(metaspaceMethodData + config.methodDataOverflowTraps); | |
120 } | |
121 | |
110 public HotSpotMethodDataAccessor getNormalData(int position) { | 122 public HotSpotMethodDataAccessor getNormalData(int position) { |
111 if (position >= normalDataSize()) { | 123 if (position >= normalDataSize()) { |
112 return null; | 124 return null; |
113 } | 125 } |
114 | 126 |