File tree Expand file tree Collapse file tree
ddprof-test/src/test/java/com/datadoghq/profiler Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 */
1517class 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.
You can’t perform that action at this time.
0 commit comments