-
Notifications
You must be signed in to change notification settings - Fork 5.9k
8253795: Implementation of JEP 391: macOS/AArch64 Port #2200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
4cbb953
3b98dba
7092a06
368f06e
f888acc
80847e9
f9cdb3f
58a63b6
39042c4
8ab282d
f69c83a
82895a8
4994873
d81cca3
0ab1e1c
f7c60d7
051357e
33c4761
b41b3a9
8738c21
b8df9dd
e3ab996
f037321
9a75bc3
0008b77
5feabb4
7d8c1e1
1cc5358
0d65571
bc80064
fe696e6
3bdd1f9
355c9c1
b01425e
47396be
8383f41
4885779
99a3dce
4fa5c96
85f76eb
7fe50a9
80ad49a
ec1def6
c88419a
3a482df
a71bac7
943b93f
f0f62da
ecbf70f
3d4f4c2
b90c13b
50b55f6
b3adff5
0c2cb0a
a8d8f4c
cd794ba
fef3658
b2b396f
f1ef624
3d7ef7b
9d8b07c
b61e633
b421e0b
3c705ae
3e7b08d
741d070
e218beb
7e4d85d
8082717
8652d21
b873c25
0d0e9ba
6936894
d93c0ae
a00d906
ad4e4c6
4094f35
43a2cae
a9452a4
f4426e7
419c2b1
daf35f0
90e244e
d2957b9
4f1f43e
eb9ea4d
07a499c
ab72613
74687c0
5bf2d82
241aede
56416b5
663cb4a
e42b82d
097cd89
e538ae6
74063fa
5ba8ba7
4c37f06
489a03c
d178376
416e433
acda02f
c4947cc
a72f683
f6fb01b
fd4812e
127c60e
29991c9
5bfe0f0
3d0f4d2
117dd68
6e39762
806fc61
5add926
b1c516d
d362996
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# | ||
# Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved. | ||
# Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved. | ||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
# | ||
# This code is free software; you can redistribute it and/or modify it | ||
|
@@ -1177,7 +1177,7 @@ define SetupNativeCompilationBody | |
# This only works if the openjdk_codesign identity is present on the system. Let | ||
# silently fail otherwise. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Might want to add a comment here: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We're not really in the habit of adding comments for various command line options. Normally, you can check these with "man" if you are uncertain. If they do something surprising, sure, but here it's more of a "it's needed on aarch64 to work at all", so I don't think a comment will be anything but added clutter. |
||
ifneq ($(CODESIGN), ) | ||
$(CODESIGN) -s "$(MACOSX_CODESIGN_IDENTITY)" --timestamp --options runtime \ | ||
$(CODESIGN) -f -s "$(MACOSX_CODESIGN_IDENTITY)" --timestamp --options runtime \ | ||
AntonKozlov marked this conversation as resolved.
Show resolved
Hide resolved
|
||
--entitlements $$(call GetEntitlementsFile, $$@) $$@ | ||
endif | ||
endif | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (c) 1999, 2020, Oracle and/or its affiliates. All rights reserved. | ||
* Copyright (c) 1999, 2021, Oracle and/or its affiliates. All rights reserved. | ||
* Copyright (c) 2014, 2015, Red Hat Inc. All rights reserved. | ||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
* | ||
|
@@ -58,7 +58,7 @@ const bool CCallingConventionRequiresIntsAsLongs = false; | |
|
||
#define COMPRESSED_CLASS_POINTERS_DEPENDS_ON_COMPRESSED_OOPS false | ||
|
||
#if defined(_WIN64) | ||
#if defined(__APPLE__) || defined(_WIN64) | ||
#define R18_RESERVED | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We always check for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Robustness, clarity, maintainability, convention. Why not? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've tried to implement the suggestion, but it pulled more unnecessary changes. It makes the intended way to check the condition less clear ( |
||
#define R18_RESERVED_ONLY(code) code | ||
#define NOT_R18_RESERVED(code) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ | |
|
||
#include "asm/assembler.inline.hpp" | ||
#include "oops/compressedOops.hpp" | ||
#include "runtime/vm_version.hpp" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not clear why this include needed to be added. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line 448 calls |
||
#include "utilities/powerOfTwo.hpp" | ||
|
||
// MacroAssembler extends Assembler by frequently used macros. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not something that needs to be addressed here, but these changes
illustrate that our collective use of macOSX/MACOSX/MacOSX names
are tied to the fact that the macOS major version number was at 10
for a very long time.
@magicus - Do we have an RFE to rename MACOSX or are we sticking
with it and evolving our interpretation of the 'X' from '10' to */splat/asterik?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dcubed-ojdk There is no RFE to renaming "macosx" to "macos". I'm not sure it should be done. We can't follow all marketing trends (Apple recently renamed iOS to iPadOS for the iPad; we can't keep adapting to such schemes). Personally, I like the new name without the "x", but we had already spent some time trying to find and fix all (or at least, most) instances of "osx" in the code, that I don't really think it's worth the effort.
If you can drill up enough enthusiasm for such a project, and get any objections down to minimum, I can help implementing it. But I won't be spearheading it.