- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for isIbmJvm (0.13 sec)
-
platforms/core-runtime/process-services/src/main/java/org/gradle/process/internal/health/memory/MaximumHeapHelper.java
} return totalMemoryFourth > oneGB ? oneGB : totalMemoryFourth; } } @VisibleForTesting boolean isIbmJvm() { return Jvm.current().isIbmJvm(); } @VisibleForTesting int getJvmBitMode() { for (String property : Arrays.asList("sun.arch.data.model", "com.ibm.vm.bitmode", "os.arch")) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:10:02 UTC 2023 - 3K bytes - Viewed (0) -
platforms/core-runtime/process-services/src/test/groovy/org/gradle/process/internal/health/memory/MBeanOsMemoryInfoTest.groovy
private static final long TEST_FREE_MEMORY = 512L * 1024 * 1024 private static final String MBEAN_OS = "java.lang:type=OperatingSystem" private static final String TOTAL_MEMORY_ATTRIBUTE = Jvm.current().isIbmJvm() ? "TotalPhysicalMemory" : "TotalPhysicalMemorySize" private static final TestMBeanAttributeProvider.AttributeKey TOTAL_MEMORY_KEY = new TestMBeanAttributeProvider.AttributeKey(MBEAN_OS, TOTAL_MEMORY_ATTRIBUTE, Long.class)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Mar 21 14:56:11 UTC 2024 - 4.3K bytes - Viewed (0) -
platforms/core-runtime/process-services/src/main/java/org/gradle/process/internal/health/memory/MBeanOsMemoryInfo.java
this.mBeanAttributeProvider = mBeanAttributeProvider; } @Override public OsMemoryStatus getOsSnapshot() { String totalMemoryAttribute = Jvm.current().isIbmJvm() ? "TotalPhysicalMemory" : "TotalPhysicalMemorySize"; long total = mBeanAttributeProvider.getMbeanAttribute("java.lang:type=OperatingSystem", totalMemoryAttribute, Long.class);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Mar 20 21:48:34 UTC 2024 - 2.2K bytes - Viewed (0) -
platforms/core-runtime/process-services/src/test/groovy/org/gradle/process/internal/health/memory/MaximumHeapHelperTest.groovy
} private static MaximumHeapHelper testMaximumHeapHelper(ibm, bitMode = 64, server = true) { new MaximumHeapHelper() { @Override boolean isIbmJvm() { return ibm } @Override int getJvmBitMode() { return bitMode } @Override boolean isServerJvm() { return server } } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:10:02 UTC 2023 - 2.5K bytes - Viewed (0) -
platforms/core-execution/workers/src/test/groovy/org/gradle/workers/internal/WorkerDaemonExpirationTest.groovy
reserveIdleClient(twoGbOptions) == client2 } def "expires idle worker daemons workers that have not provided usage and max heap is not specified"() { long requestedMemory = Jvm.current().isIbmJvm() ? MemoryAmount.parseNotation("512m") : MemoryAmount.ofGigaBytes(1).bytes given: reportsMemoryUsage = false def client1 = reserveNewClient(defaultOptions)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Mar 21 14:56:11 UTC 2024 - 7.6K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/DefaultGradleDistribution.groovy
} @Override boolean worksWith(Jvm jvm) { // Milestone 4 was broken on the IBM jvm if (jvm.isIbmJvm() && isVersion("1.0-milestone-4")) { return false; } JavaVersion javaVersion = jvm.getJavaVersion(); if (javaVersion == null) { throw new IllegalArgumentException();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 20 16:09:27 UTC 2024 - 12.2K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/jvm/Jvm.java
continue; } vars.put(entry.getKey(), entry.getValue()); } return vars; } public boolean isIbmJvm() { for (String vendorProperty : VENDOR_PROPERTIES) { if (System.getProperties().containsKey(vendorProperty)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 06:57:34 UTC 2024 - 13.2K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/jvm/JvmTest.groovy
} def "uses system property to determine if IBM JVM"() { when: System.properties[vendorProperty] = 'IBM Corporation' def jvm = Jvm.current() then: jvm.isIbmJvm() where: vendorProperty << ['java.vendor', 'java.vm.vendor'] } def "finds executable for java home supplied"() { System.properties['java.vm.vendor'] = 'Sun'
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 24 00:09:57 UTC 2024 - 15.4K bytes - Viewed (0) -
platforms/software/resources-http/src/main/java/org/gradle/internal/resource/transport/http/HttpClientConfigurer.java
String httpsProtocols = System.getProperty(HTTPS_PROTOCOLS); if (httpsProtocols != null) { return httpsProtocols.split(","); } else if (JavaVersion.current().isJava8() && Jvm.current().isIbmJvm()) { return new String[]{"TLSv1.2"}; } else if (jdkSupportsTLSProtocol("TLSv1.3")) { return new String[]{"TLSv1.2", "TLSv1.3"}; } else {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 18.5K bytes - Viewed (0)