Skip to content

Commit cab11c1

Browse files
async profiler 4.1 update (#2096)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 05b02ba commit cab11c1

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

dependencyManagement/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ dependencies {
5555
api("org.testcontainers:kafka:1.21.3")
5656
api("com.lmax:disruptor:3.4.4")
5757
api("org.jctools:jctools-core:4.0.5")
58-
api("tools.profiler:async-profiler:4.0")
58+
api("tools.profiler:async-profiler:4.1")
5959
api("com.blogspot.mydailyjava:weak-lock-free:0.18")
6060
api("org.agrona:agrona:1.22.0")
6161
api("com.github.f4b6a3:uuid-creator:6.1.1")

inferred-spans/src/main/java/io/opentelemetry/contrib/inferredspans/internal/asyncprofiler/JfrParser.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,10 @@ private void parseConstantPool() throws IOException {
199199
case ContentTypeId.CONTENT_SYMBOL:
200200
readSymbolConstants(count);
201201
break;
202+
case ContentTypeId.CONTENT_STRING:
203+
// ignore empty string
204+
bufferedFile.skip(2);
205+
break;
202206
default:
203207
throw new IllegalStateException("Unhandled constant pool type: " + typeId);
204208
}
@@ -499,5 +503,6 @@ private ContentTypeId() {}
499503
static final int CONTENT_FRAME_TYPE = 24;
500504
static final int CONTENT_GC_WHEN = 32;
501505
static final int CONTENT_PACKAGE = 30;
506+
static final int CONTENT_STRING = 20;
502507
}
503508
}

inferred-spans/src/test/java/io/opentelemetry/contrib/inferredspans/internal/asyncprofiler/JfrParserTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ void name() throws Exception {
5858
}
5959
stackFrames.clear();
6060
});
61-
assertThat(stackTraces.get()).isEqualTo(66);
61+
assertThat(stackTraces.get()).isEqualTo(92);
6262
}
6363
}
-28.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)