File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
memory-usage/src/main/java/org/neo4j/gds/mem Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -372,7 +372,7 @@ private static final class VmInfoHolder {
372
372
*/
373
373
@ SuppressForbidden (reason = "we want to use system.out here" )
374
374
private static boolean isVmInfoAvailable () {
375
- intelMacWorkaround ();
375
+ macWorkaround ();
376
376
377
377
var sysOut = System .out ;
378
378
try {
@@ -389,19 +389,16 @@ private static boolean isVmInfoAvailable() {
389
389
}
390
390
391
391
/**
392
- * JOL currently gets stuck on Azul Zulu 17.44.53-ca-jdk17.0.8.1 on Intel Macs.
392
+ * JOL currently kills the JVM on Mac OS X when trying to attach to the Hotspot SA.
393
+ * This happens with several JVMs (Java.net, Azul) and on both platforms (x86, ARM).
393
394
* <p>
394
395
* We can work around this by skipping the Hotspot SA attach.
395
396
* See <a href="https://bugs.openjdk.org/browse/CODETOOLS-7903447">OpenJDK issue</a>
396
397
* </p>
397
398
*/
398
399
@ Deprecated (forRemoval = true )
399
- private static void intelMacWorkaround () {
400
- var isAzul = System .getProperty ("java.vendor" ).contains ("Azul Systems" );
401
- var isIntel = System .getProperty ("os.arch" ).contains ("x86_64" );
402
- var isMac = System .getProperty ("os.name" ).contains ("Mac" );
403
-
404
- if (isAzul && isIntel && isMac ) {
400
+ private static void macWorkaround () {
401
+ if (System .getProperty ("os.name" ).contains ("Mac" )) {
405
402
System .setProperty ("jol.skipHotspotSAAttach" , "true" );
406
403
}
407
404
}
You can’t perform that action at this time.
0 commit comments