提交 native-image 的 Reachability Metadata (#10634)

This commit is contained in:
Darren Luo 2023-06-19 10:45:09 +08:00 committed by GitHub
parent 4095d172d0
commit f40e5937ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 2532 additions and 0 deletions

34
client/filter-config.json Normal file
View File

@ -0,0 +1,34 @@
{
"rules": [
{
"includeClasses": "com.alibaba.nacos.**"
},
{
"excludeClasses": "org.mockito.**"
},
{
"excludeClasses": "java.lang.management.**"
},
{
"excludeClasses": "net.bytebuddy.**"
},
{
"excludeClasses": "junit.**"
},
{
"excludeClasses": "org.junit.**"
},
{
"excludeClasses": "org.graalvm.**"
},
{
"excludeClasses": "jdk.**"
},
{
"excludeClasses": "org.hamcrest.**"
}
],
"regexRules": [
{"excludeClasses": ".*Test$"}
]
}

View File

@ -0,0 +1,50 @@
[
{
"name":"[Lcom.sun.management.internal.DiagnosticCommandArgumentInfo;"
},
{
"name":"[Lcom.sun.management.internal.DiagnosticCommandInfo;"
},
{
"name":"com.sun.management.internal.DiagnosticCommandArgumentInfo",
"methods":[{"name":"<init>","parameterTypes":["java.lang.String","java.lang.String","java.lang.String","java.lang.String","boolean","boolean","boolean","int"] }]
},
{
"name":"com.sun.management.internal.DiagnosticCommandInfo",
"methods":[{"name":"<init>","parameterTypes":["java.lang.String","java.lang.String","java.lang.String","java.lang.String","java.lang.String","java.lang.String","boolean","java.util.List"] }]
},
{
"name":"java.lang.InternalError",
"methods":[{"name":"<init>","parameterTypes":["java.lang.String"] }]
},
{
"name":"java.lang.SecurityManager",
"fields":[{"name":"initialized"}]
},
{
"name":"java.util.Arrays",
"methods":[{"name":"asList","parameterTypes":["java.lang.Object[]"] }]
},
{
"name":"sun.instrument.InstrumentationImpl",
"methods":[
{"name":"<init>","parameterTypes":["long","boolean","boolean"] },
{"name":"loadClassAndCallAgentmain","parameterTypes":["java.lang.String","java.lang.String"] },
{"name":"loadClassAndCallPremain","parameterTypes":["java.lang.String","java.lang.String"] },
{"name":"transform","parameterTypes":["java.lang.Module","java.lang.ClassLoader","java.lang.String","java.lang.Class","java.security.ProtectionDomain","byte[]","boolean"] }
]
},
{
"name":"sun.management.VMManagementImpl",
"fields":[
{"name":"compTimeMonitoringSupport"},
{"name":"currentThreadCpuTimeSupport"},
{"name":"objectMonitorUsageSupport"},
{"name":"otherThreadCpuTimeSupport"},
{"name":"remoteDiagnosticCommandsSupport"},
{"name":"synchronizerUsageSupport"},
{"name":"threadAllocatedMemorySupport"},
{"name":"threadContentionMonitoringSupport"}
]
}
]

View File

@ -0,0 +1,8 @@
[
{
"type":"agent-extracted",
"classes":[
]
}
]

View File

@ -0,0 +1,84 @@
{
"resources":{
"includes":[
{
"pattern":"\\QMETA-INF/org/apache/logging/log4j/core/config/plugins/Log4j2Plugins.dat\\E"
},
{
"pattern":"\\QMETA-INF/services/com.alibaba.nacos.api.config.filter.IConfigFilter\\E"
},
{
"pattern":"\\QMETA-INF/services/com.alibaba.nacos.api.remote.Payload\\E"
},
{
"pattern":"\\QMETA-INF/services/com.alibaba.nacos.plugin.auth.spi.client.AbstractClientAuthService\\E"
},
{
"pattern":"\\QMETA-INF/services/com.oracle.truffle.api.TruffleLanguage$Provider\\E"
},
{
"pattern":"\\QMETA-INF/services/com.oracle.truffle.api.instrumentation.TruffleInstrument$Provider\\E"
},
{
"pattern":"\\QMETA-INF/services/io.grpc.LoadBalancerProvider\\E"
},
{
"pattern":"\\QMETA-INF/services/io.grpc.ManagedChannelProvider\\E"
},
{
"pattern":"\\QMETA-INF/services/io.grpc.NameResolverProvider\\E"
},
{
"pattern":"\\QMETA-INF/services/org.apache.logging.log4j.core.util.ContextDataProvider\\E"
},
{
"pattern":"\\QMETA-INF/services/org.apache.logging.log4j.spi.Provider\\E"
},
{
"pattern":"\\QMETA-INF/services/org.apache.logging.log4j.util.PropertySource\\E"
},
{
"pattern":"\\Q\\E"
},
{
"pattern":"\\Qcom/alibaba/nacos/client/logging/log4j2\\E"
},
{
"pattern":"\\Qcom/oracle/truffle/nfi/backend/libffi/LibFFILanguage.class\\E"
},
{
"pattern":"\\Qmockito-extensions/org.mockito.plugins.MemberAccessor\\E"
},
{
"pattern":"\\Qmockito-extensions/org.mockito.plugins.MockMaker\\E"
},
{
"pattern":"\\Qnacos-log4j2.xml\\E"
},
{
"pattern":"\\Qnacos-logback.xml\\E"
},
{
"pattern":"\\Qnacos-version.txt\\E"
},
{
"pattern":"\\Qorg/mockito/internal/creation/bytebuddy/MockMethodAdvice$ForEquals.class\\E"
},
{
"pattern":"\\Qorg/mockito/internal/creation/bytebuddy/MockMethodAdvice$ForHashCode.class\\E"
},
{
"pattern":"\\Qorg/mockito/internal/creation/bytebuddy/MockMethodAdvice$ForStatic.class\\E"
},
{
"pattern":"\\Qorg/mockito/internal/creation/bytebuddy/MockMethodAdvice.class\\E"
},
{
"pattern":"\\Qorg/mockito/internal/creation/bytebuddy/inject/MockMethodDispatcher.raw\\E"
},
{
"pattern":"\\Qorg/slf4j/impl/StaticLoggerBinder.class\\E"
}
]},
"bundles":[]
}

View File

@ -0,0 +1,12 @@
{
"types":[
{
"name":"com.alibaba.nacos.client.naming.event.InstancesChangeEvent",
"customTargetConstructorClass":"java.lang.Object"
}
],
"lambdaCapturingTypes":[
],
"proxies":[
]
}

View File

@ -353,6 +353,13 @@
<exclude>src/main/java/com/alibaba/nacos/common/packagescan/classreading/**</exclude>
<exclude>.flattened-pom.xml</exclude>
<exclude>**/announcement.conf</exclude>
<exclude>**/reflect-config.json</exclude>
<exclude>**/resource-config.json</exclude>
<exclude>**/proxy-config.json</exclude>
<exclude>**/jni-config.json</exclude>
<exclude>**/predefined-classes-config.json</exclude>
<exclude>**/serialization-config.json</exclude>
<exclude>**/filter-config.json</exclude>
</excludes>
</configuration>
<executions>