Browse Source

REPORT-67981 feature:删除对于IBM相关jdk的支持

【问题原因】ibm-jdk和openj9的jdk对于OpenJ9VirtualMachineDescriptor、OpenJ9VirtualMachine、OpenJ9AttachProvider这几个类的改动频繁不适合内置,暂不支持
【改动思路】删除支持,输出错误日志
feature/x
zhouping 3 years ago
parent
commit
60723b433c
  1. 7
      fine-third-jdk8/fine-mini-tools/tools-common/src/main/java/com/fr/third/utils/load/LibraryLoadProviderManager.java
  2. BIN
      fine-third-jdk8/fine-mini-tools/tools-common/src/main/resources/com/fr/third/com/ibm/tools/attach/attacher/OpenJ9AttachProvider$Permissions.class
  3. BIN
      fine-third-jdk8/fine-mini-tools/tools-common/src/main/resources/com/fr/third/com/ibm/tools/attach/attacher/OpenJ9AttachProvider.class
  4. BIN
      fine-third-jdk8/fine-mini-tools/tools-common/src/main/resources/com/fr/third/com/ibm/tools/attach/attacher/OpenJ9VirtualMachine.class
  5. BIN
      fine-third-jdk8/fine-mini-tools/tools-common/src/main/resources/com/fr/third/com/ibm/tools/attach/attacher/OpenJ9VirtualMachineDescriptor.class
  6. BIN
      fine-third-jdk8/fine-mini-tools/tools-common/src/main/resources/com/fr/third/utils/load/impl/IbmLibraryLoadProvider.class

7
fine-third-jdk8/fine-mini-tools/tools-common/src/main/java/com/fr/third/utils/load/LibraryLoadProviderManager.java

@ -127,13 +127,16 @@ public class LibraryLoadProviderManager {
FineLoggerFactory.getLogger().error("[CustomVM] custom vm initialization unsupported: java version isn't 1.8");
return;
}
String vmVendor = System.getProperty("java.vm.vendor").toLowerCase();
if (vmVendor.contains("ibm") || vmVendor.contains("openj9")) {
FineLoggerFactory.getLogger().error("[CustomVM] custom vm initialization unsupported: ibm-jdk or openj9");
return;
}
FineLoggerFactory.getLogger().info("[CustomVM] library load manager initialization starts...");
if (envInit == null) {
releaseEnv();
try {
List<LibraryLoadProvider> libraryLoadProviders = new ArrayList<>();
Class<?> ibmLibraryLoadProviderClass = Class.forName("com.fr.third.utils.load.impl.IbmLibraryLoadProvider");
libraryLoadProviders.add((LibraryLoadProvider) ibmLibraryLoadProviderClass.newInstance());
libraryLoadProviders.add(new AixLibraryLoadProvider());
libraryLoadProviders.add(new BsdLibraryLoadProvider());
libraryLoadProviders.add(new LinuxArmLibraryLoadProvider());

BIN
fine-third-jdk8/fine-mini-tools/tools-common/src/main/resources/com/fr/third/com/ibm/tools/attach/attacher/OpenJ9AttachProvider$Permissions.class

Binary file not shown.

BIN
fine-third-jdk8/fine-mini-tools/tools-common/src/main/resources/com/fr/third/com/ibm/tools/attach/attacher/OpenJ9AttachProvider.class

Binary file not shown.

BIN
fine-third-jdk8/fine-mini-tools/tools-common/src/main/resources/com/fr/third/com/ibm/tools/attach/attacher/OpenJ9VirtualMachine.class

Binary file not shown.

BIN
fine-third-jdk8/fine-mini-tools/tools-common/src/main/resources/com/fr/third/com/ibm/tools/attach/attacher/OpenJ9VirtualMachineDescriptor.class

Binary file not shown.

BIN
fine-third-jdk8/fine-mini-tools/tools-common/src/main/resources/com/fr/third/utils/load/impl/IbmLibraryLoadProvider.class

Binary file not shown.
Loading…
Cancel
Save