GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Deprecated sun.misc.Unsafe usage in vendored protobuf on JDK 25 · Issue #361 · grafana/pyroscope-java DescriptionWhen starting io.pyroscope:agent:2.9.1 in-process on JDK 25 (openjdk 25.0.4`, Ubuntu 24.04), the following warning is logged to stderr during startup: This is related to JEP 498. Because the protobuf runtime is shaded (io.pyroscope.vendor.*), downstream consumers cannot simply exclude or upgrade the dependency themselves. While users can temporarily defer the issue by passing Minimal example for reproduction
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.example</groupId> <artifactId>pyroscope-repro</artifactId> <version>1.0-SNAPSHOT</version> <properties> <maven.compiler.source>25</maven.compiler.source> <maven.compiler.target>25</maven.compiler.target> </properties> <dependencies> <dependency> <groupId>io.pyroscope</groupId> <artifactId>agent</artifactId> <version>2.9.1</version> </dependency> </dependencies> </project>
import io.pyroscope.javaagent.PyroscopeAgent; import io.pyroscope.javaagent.config.Config; public class Main { public static void main(String[] args) throws InterruptedException { // Start the agent in-process PyroscopeAgent.start(Config.build()); System.out.println("Pyroscope agent started. Waiting 15s for the first snapshot flush..."); // Wait long enough for the agent to serialize and flush profile data Thread.sleep(15000); } }
Once the agent attempts to upload the snapshot (around the 10-second mark), it will invoke the vendored Protobuf code and you will see the Unsafe warning appear on stderr (along with a connection error since there is no Pyroscope server running locally, which is expected). Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |