From nobody Sun Aug 17 14:02:37 2025 X-Original-To: java@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4c4cx915Jsz64p5q for ; Sun, 17 Aug 2025 14:02:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4c4cx90XbGz3kDS for ; Sun, 17 Aug 2025 14:02:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1755439357; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=T+avBXJuwF3QIrG1PNtbSCWeMYgp29Htw43M6uKk2Hw=; b=KOhVatdezDnIfMQ6s9KGYoRh5ezGVA9CB8V75I6/nw+9S0s1k9dyZvyCrvQbFscyrLIqCl Rrt757MrfT/4m/DwWOPkbQVh2MhbYfNPxLYlTN2Vgg8zp9spnUQAFVOmGII/3tHNReV1We dhu1i4OwfeIUdbqW2WqEimWR4bs/Vpa7L+ruadQlb9X1H3ytKnU8BtNfPpXZMPgHm6rsJH RYeDJuwfDTs4QFx7DNfPshLEoNGBI8EmW6ChA4sEZ+cSlihdkB/KOypyj8x26tGUGaTS4p Ig6l3rNEFU4XeIpnn1A+l8+/DmD+8nKsFVVQkzhmuAGn0YHlFuZooer4li4egg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1755439357; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=T+avBXJuwF3QIrG1PNtbSCWeMYgp29Htw43M6uKk2Hw=; b=GtOG9Dpr5DGYLN1sa7KLm6yqh9AHOdr9EIAVBoSfd8+WJZoQpiGXNYxPDhL0beuLxsY9vf csdZTWtuAr7wC7lChELqsS82xfV8XkkFZQmbfx0m7Mhyj91PIn39KvhFlPfmFURRAM0rQV GUh9zmJMscR3al5QIaFIsteDYxGLG4XSmQl8Gdbd+UsiOb8jGSLaQt/Eej71ZrH6xiKl3T DU/BFCVWglhDPM6El4yGQTSx9Q5tLs60ujjgEtGmpYqzZdxx49/IiIIRcL1j0DdxHAj+xz PhRuIfYanbIEzIyX425KKkGoBeeRQGb2MbPCLhY8woegrYDBrFiTrETJWwnjfw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1755439357; a=rsa-sha256; cv=none; b=s3sORKXOIWoH4u35Vn+jm4qomhiOzNSPJGZRJnqRqV0tCfonxl8qsboOwou3TXAzTKGQtU OLa31rm0EM57xJwGHbrXZVbo8fxbt8zbBhORbwSH9rPr8uq6S51bpgWd5wXinzyAsOcMCa 77tlmWwfOg83IgrLbGc0DPZlQuTVvUtJ9Ga0rhFhA1jKcihgXV/pR6hgfMictTmbQIea09 KufUNM9deiHTegPGWQhaar1wLigTipnfIdsq6CJKIvY3NkxdoFLjrUJQ8ds8p720UT6MIc 4D0CdmPOGQR3lAGfReSgBeN59LP7MvEv2O1yCpD3NDe5+OSHQjH9YIlp3Zh2GQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4c4cx907jKz1Bsq for ; Sun, 17 Aug 2025 14:02:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 57HE2aI4091568 for ; Sun, 17 Aug 2025 14:02:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 57HE2a8d091567 for java@FreeBSD.org; Sun, 17 Aug 2025 14:02:36 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: [Bug 265284] java/openjdk11: wont run or build running on VMWare on M1 Mac Mini (aarch64) Date: Sun, 17 Aug 2025 14:02:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pho@cielonegro.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Porting Java to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-java List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-java@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265284 PHO changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pho@cielonegro.org --- Comment #10 from PHO --- Hello. I am a pkgsrc developer from NetBSD.org. We had suffered from the sa= me issue on NetBSD and have recently found out the cause. The problem was not about W^X but was about cache coherency. pkgsrc now has a series of patches= to work around the problem. Maybe you FreeBSD folks are interested in incorporating them? The patches are here: https://github.com/NetBSD/pkgsrc/tree/63c121a0079d1e0eac81acb3cd557ba68f4eb= e8b/lang/openjdk21/patches To fix it apply these 3 patches: * patch-src_hotspot_share_runtime_threadWXSetters.inline.hpp * patch-src_hotspot_cpu_aarch64_jniFastGetField__aarch64.cpp * patch-src_hotspot_os__cpu_bsd__aarch64_os__bsd__aarch64.cpp And also replace every occurence of > MACOS_AARCH64_ONLY(ThreadWXEnable with > AARCH64_ONLY(ThreadWXEnable in any files under "src/hotspot". Any files, not just .[ch]pp. The patch file for threadWXSetters.inline.hpp contains detailed explanation= of what the actual problem is and how one can fix it. I initially considered reporting this to OpenJDK devs but it turned out they really don't want any feedback from outsiders. They don't even allow random people on the Interne= t to file a bug ticket!! So I decided to just inform you about the fix and forget about the upstream. --=20 You are receiving this mail because: You are the assignee for the bug.=