未验证 提交 2b274f3c 编写于 作者: wu-sheng's avatar wu-sheng 提交者: GitHub

Make JDK 12 works. (#3197)

上级 b091c0ae
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<jetty.version>9.4.2.v20170220</jetty.version> <jetty.version>9.4.2.v20170220</jetty.version>
<grpc.version>1.14.0</grpc.version> <grpc.version>1.14.0</grpc.version>
<guava.version>20.0</guava.version> <guava.version>20.0</guava.version>
<bytebuddy.version>1.9.2</bytebuddy.version> <bytebuddy.version>1.9.16</bytebuddy.version>
<disruptor.version>3.3.6</disruptor.version> <disruptor.version>3.3.6</disruptor.version>
<wiremock.version>2.6.0</wiremock.version> <wiremock.version>2.6.0</wiremock.version>
<netty-tcnative-boringssl-static.version>2.0.7.Final</netty-tcnative-boringssl-static.version> <netty-tcnative-boringssl-static.version>2.0.7.Final</netty-tcnative-boringssl-static.version>
......
...@@ -90,8 +90,8 @@ public class BootstrapInstrumentBoost { ...@@ -90,8 +90,8 @@ public class BootstrapInstrumentBoost {
} }
/** /**
* This strategy is no longer available after Java 11. * Inject the classes into bootstrap class loader by using Unsafe Strategy.
* Inject the classes into bootstrap class loader. * ByteBuddy adapts the sun.misc.Unsafe and jdk.internal.misc.Unsafe automatically.
*/ */
ClassInjector.UsingUnsafe.ofBootLoader().injectRaw(classesTypeMap); ClassInjector.UsingUnsafe.ofBootLoader().injectRaw(classesTypeMap);
agentBuilder = agentBuilder.enableUnsafeBootstrapInjection(); agentBuilder = agentBuilder.enableUnsafeBootstrapInjection();
......
# Setup java agent # Setup java agent
1. Agent is available for JDK 1.6 - 11. 1. Agent is available for JDK 1.6 - 12.
1. Find `agent` folder in SkyWalking release package 1. Find `agent` folder in SkyWalking release package
1. Set `agent.service_name` in `config/agent.config`. Could be any String in English. 1. Set `agent.service_name` in `config/agent.config`. Could be any String in English.
1. Set `collector.backend_service` in `config/agent.config`. Default point to `127.0.0.1:11800`, only works for local backend. 1. Set `collector.backend_service` in `config/agent.config`. Default point to `127.0.0.1:11800`, only works for local backend.
...@@ -20,7 +20,10 @@ The agent release dist is included in Apache [official release](http://skywalkin ...@@ -20,7 +20,10 @@ The agent release dist is included in Apache [official release](http://skywalkin
apm-feign-default-http-9.x.jar apm-feign-default-http-9.x.jar
apm-httpClient-4.x-plugin.jar apm-httpClient-4.x-plugin.jar
..... .....
+--- logs +-- optional-plugins
apm-gson-2.x-plugin.jar
.....
+-- logs
skywalking-agent.jar skywalking-agent.jar
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册