Skip to content

Commit 3d15d9c

Browse files
jbachorikclaude
andcommitted
fix: skip SupportOnlyLoadTest on J9 — libJavaSupport crashes at shutdown
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent ff94a60 commit 3d15d9c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

ddprof-test/src/test/java/com/datadoghq/profiler/SupportOnlyLoadTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,18 @@
1111

1212
/**
1313
* Verifies that {@link JVMAccess} loads only libJavaSupport.so and does NOT load libjavaProfiler.so.
14+
* Skipped on J9/Zing — libJavaSupport relies on HotSpot vmstructs; loading it on J9 can
15+
* trigger an abort during JVM shutdown.
1416
*/
1517
class SupportOnlyLoadTest {
1618

1719
@Test
1820
@EnabledOnOs(OS.LINUX)
1921
void jvmAccessDoesNotLoadProfilerLibrary() throws Exception {
22+
// libJavaSupport.so depends on HotSpot vmstructs; loading it on J9 crashes at shutdown.
23+
org.junit.jupiter.api.Assumptions.assumeFalse(Platform.isJ9(),
24+
"libJavaSupport not supported on J9");
25+
2026
// Snapshot maps BEFORE initializing JVMAccess. The profiler may already be
2127
// mapped if it was loaded as a JVM agent by other tests in the same JVM;
2228
// in that case we cannot attribute the mapping to JVMAccess, so skip.

0 commit comments

Comments
 (0)