Re: RFR: 8248238: Implementation of JEP: Windows AArch64 Support [v6]

2020-09-28 Thread Bernhard Urban-Forster
On Thu, 24 Sep 2020 15:43:10 GMT, Chris Plummer  wrote:

>> Monica Beckwith has updated the pull request with a new target base due to a 
>> merge or a rebase. The incremental webrev
>> excludes the unrelated changes brought in by the merge/rebase. The pull 
>> request contains 17 additional commits since
>> the last revision:
>>  - cleanup for 8253539: Remove unused JavaThread functions for 
>> set_last_Java_fp/pc
>>  - cleanup for 8253457: Remove unimplemented register stack functions
>>  - Merge remote-tracking branch 'upstream/master' into jdk-windows
>>  - Update orderAccess_windows_aarch64.hpp
>>
>>changing from Acq-reL to Sequential Consistency to avoid compiler 
>> reordering when no ordering hints are provided
>>  - 8248787: G1: Workaround MSVC bug
>>Reviewed-by:
>>Contributed-by: mbeckwit, luhenry, burban
>>  - 8248670: Windows: Exception handling support on AArch64
>>Reviewed-by:
>>Contributed-by: mbeckwit, luhenry, burban
>>  - 8248660: AArch64: Make _clear_cache and _nop portable
>>Summary: __builtin___clear_cache, etc.
>>Contributed-by: mbeckwit, luhenry, burban
>>  - 8248659: AArch64: Extend CPU Feature detection
>>Reviewed-by:
>>Contributed-by: mbeckwit, luhenry, burban
>>  - 8248656: Add Windows AArch64 platform support code
>>Reviewed-by:
>>Contributed-by: mbeckwit, luhenry, burban
>>  - 8248498: Add build system support for Windows AArch64
>>Reviewed-by:
>>Contributed-by: mbeckwit, luhenry, burban
>>  - ... and 7 more: 
>> https://git.openjdk.java.net/jdk/compare/451890eb...2b662010
>
> I looked at changes to existing SA files. These changes look fine.
> 
> I did not look at the new aarch64 SA files other than the copyright section. 
> I assume they are clones of the x64
> versions with some symbolic renaming. If there is any more than that and 
> you'd like me to have a look, let me know.
> As for the copyright in the new SA files, I believe it is incorrect and needs 
> to include Oracle. There are a number of
> other non-SA files that are new and also have the same copyright issue.
> I also looked at 
> src/jdk.attach/windows/classes/sun/tools/attach/AttachProviderImpl.java. It 
> looks fine except it needs
> a copyright date update.

@plummercj thank you for your feedback. I've updated the copyright in mentioned 
files.

-

PR: https://git.openjdk.java.net/jdk/pull/212


Re: RFR: 8248238: Implementation of JEP: Windows AArch64 Support [v6]

2020-09-24 Thread David Holmes

Hi Chris, Monica,

On 25/09/2020 1:47 am, Chris Plummer wrote:

As for the copyright in the new SA files, I believe it is incorrect and needs 
to include Oracle. There are a number of
other non-SA files that are new and also have the same copyright issue.


If a file was created completely from scratch then it should just have 
the Microsoft copyright notice. However, if it was copied from an 
existing file and modified, then the existing file's copyright should be 
included and a Microsoft one added if the changes are significant.


But IANAL. :)

Cheers,
David


I also looked at 
src/jdk.attach/windows/classes/sun/tools/attach/AttachProviderImpl.java. It 
looks fine except it needs
a copyright date update.

-

Changes requested by cjplummer (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/212



Re: RFR: 8248238: Implementation of JEP: Windows AArch64 Support [v6]

2020-09-24 Thread Monica Beckwith
On Thu, 24 Sep 2020 15:43:10 GMT, Chris Plummer  wrote:

>> Monica Beckwith has updated the pull request with a new target base due to a 
>> merge or a rebase. The incremental webrev
>> excludes the unrelated changes brought in by the merge/rebase. The pull 
>> request contains 17 additional commits since
>> the last revision:
>>  - cleanup for 8253539: Remove unused JavaThread functions for 
>> set_last_Java_fp/pc
>>  - cleanup for 8253457: Remove unimplemented register stack functions
>>  - Merge remote-tracking branch 'upstream/master' into jdk-windows
>>  - Update orderAccess_windows_aarch64.hpp
>>
>>changing from Acq-reL to Sequential Consistency to avoid compiler 
>> reordering when no ordering hints are provided
>>  - 8248787: G1: Workaround MSVC bug
>>Reviewed-by:
>>Contributed-by: mbeckwit, luhenry, burban
>>  - 8248670: Windows: Exception handling support on AArch64
>>Reviewed-by:
>>Contributed-by: mbeckwit, luhenry, burban
>>  - 8248660: AArch64: Make _clear_cache and _nop portable
>>Summary: __builtin___clear_cache, etc.
>>Contributed-by: mbeckwit, luhenry, burban
>>  - 8248659: AArch64: Extend CPU Feature detection
>>Reviewed-by:
>>Contributed-by: mbeckwit, luhenry, burban
>>  - 8248656: Add Windows AArch64 platform support code
>>Reviewed-by:
>>Contributed-by: mbeckwit, luhenry, burban
>>  - 8248498: Add build system support for Windows AArch64
>>Reviewed-by:
>>Contributed-by: mbeckwit, luhenry, burban
>>  - ... and 7 more: 
>> https://git.openjdk.java.net/jdk/compare/6fea1339...2b662010
>
> I looked at changes to existing SA files. These changes look fine.
> 
> I did not look at the new aarch64 SA files other than the copyright section. 
> I assume they are clones of the x64
> versions with some symbolic renaming. If there is any more than that and 
> you'd like me to have a look, let me know.
> As for the copyright in the new SA files, I believe it is incorrect and needs 
> to include Oracle. There are a number of
> other non-SA files that are new and also have the same copyright issue.
> I also looked at 
> src/jdk.attach/windows/classes/sun/tools/attach/AttachProviderImpl.java. It 
> looks fine except it needs
> a copyright date update.

@dholmes-ora, makes sense. I will do the needful. Thanks.

> @mo-beck This PR should not be associated with any JBS issues which are 
> targeted at repo-aarch64-port. All such issues
> should have been closed by now when the associated code was pushed to 
> aarch64-port repo. That was the whole point of
> creating separate issues so that they could be tracked in the porting repo. 
> Now that all of that work should be
> complete the only issue that should remain open in relation to the 
> Windows-Aarch64 port is JDK-8248238. Thanks.

-

PR: https://git.openjdk.java.net/jdk/pull/212


Re: RFR: 8248238: Implementation of JEP: Windows AArch64 Support [v6]

2020-09-24 Thread Chris Plummer
On Thu, 24 Sep 2020 14:04:22 GMT, Monica Beckwith  wrote:

>> This is a continuation of 
>> https://mail.openjdk.java.net/pipermail/aarch64-port-dev/2020-August/009566.html
>>  
>> Changes since then:
>> * We've improved the write barrier as suggested by Andrew [1]
>> * The define-guards around R18 have been changed to `R18_RESERVED`. This 
>> will be enabled for Windows only for now but
>>   will be required for the upcoming macOS+Aarch64 [2] port as well.
>> * We've incorporated https://github.com/openjdk/jdk/pull/154 by @AntonKozlov 
>> in our PR for now and built the
>>   Windows-specific CPU feature detection on top of it.
>> 
>> [1] 
>> https://mail.openjdk.java.net/pipermail/aarch64-port-dev/2020-August/009597.html
>> [2] https://openjdk.java.net/jeps/8251280
>
> Monica Beckwith has updated the pull request with a new target base due to a 
> merge or a rebase. The incremental webrev
> excludes the unrelated changes brought in by the merge/rebase. The pull 
> request contains 17 additional commits since
> the last revision:
>  - cleanup for 8253539: Remove unused JavaThread functions for 
> set_last_Java_fp/pc
>  - cleanup for 8253457: Remove unimplemented register stack functions
>  - Merge remote-tracking branch 'upstream/master' into jdk-windows
>  - Update orderAccess_windows_aarch64.hpp
>
>changing from Acq-reL to Sequential Consistency to avoid compiler 
> reordering when no ordering hints are provided
>  - 8248787: G1: Workaround MSVC bug
>Reviewed-by:
>Contributed-by: mbeckwit, luhenry, burban
>  - 8248670: Windows: Exception handling support on AArch64
>Reviewed-by:
>Contributed-by: mbeckwit, luhenry, burban
>  - 8248660: AArch64: Make _clear_cache and _nop portable
>Summary: __builtin___clear_cache, etc.
>Contributed-by: mbeckwit, luhenry, burban
>  - 8248659: AArch64: Extend CPU Feature detection
>Reviewed-by:
>Contributed-by: mbeckwit, luhenry, burban
>  - 8248656: Add Windows AArch64 platform support code
>Reviewed-by:
>Contributed-by: mbeckwit, luhenry, burban
>  - 8248498: Add build system support for Windows AArch64
>Reviewed-by:
>Contributed-by: mbeckwit, luhenry, burban
>  - ... and 7 more: 
> https://git.openjdk.java.net/jdk/compare/ddd43bee...2b662010

I looked at changes to existing SA files. These changes look fine.

I did not look at the new aarch64 SA files other than the copyright section. I 
assume they are clones of the x64
versions with some symbolic renaming. If there is any more than that and you'd 
like me to have a look, let me know.

As for the copyright in the new SA files, I believe it is incorrect and needs 
to include Oracle. There are a number of
other non-SA files that are new and also have the same copyright issue.

I also looked at 
src/jdk.attach/windows/classes/sun/tools/attach/AttachProviderImpl.java. It 
looks fine except it needs
a copyright date update.

-

Changes requested by cjplummer (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/212


Re: RFR: 8248238: Implementation of JEP: Windows AArch64 Support [v6]

2020-09-24 Thread Monica Beckwith
> This is a continuation of 
> https://mail.openjdk.java.net/pipermail/aarch64-port-dev/2020-August/009566.html
>  
> Changes since then:
> * We've improved the write barrier as suggested by Andrew [1]
> * The define-guards around R18 have been changed to `R18_RESERVED`. This will 
> be enabled for Windows only for now but
>   will be required for the upcoming macOS+Aarch64 [2] port as well.
> * We've incorporated https://github.com/openjdk/jdk/pull/154 by @AntonKozlov 
> in our PR for now and built the
>   Windows-specific CPU feature detection on top of it.
> 
> [1] 
> https://mail.openjdk.java.net/pipermail/aarch64-port-dev/2020-August/009597.html
> [2] https://openjdk.java.net/jeps/8251280

Monica Beckwith has updated the pull request with a new target base due to a 
merge or a rebase. The incremental webrev
excludes the unrelated changes brought in by the merge/rebase. The pull request 
contains 17 additional commits since
the last revision:

 - cleanup for 8253539: Remove unused JavaThread functions for 
set_last_Java_fp/pc
 - cleanup for 8253457: Remove unimplemented register stack functions
 - Merge remote-tracking branch 'upstream/master' into jdk-windows
 - Update orderAccess_windows_aarch64.hpp
   
   changing from Acq-reL to Sequential Consistency to avoid compiler reordering 
when no ordering hints are provided
 - 8248787: G1: Workaround MSVC bug
   Reviewed-by:
   Contributed-by: mbeckwit, luhenry, burban
 - 8248670: Windows: Exception handling support on AArch64
   Reviewed-by:
   Contributed-by: mbeckwit, luhenry, burban
 - 8248660: AArch64: Make _clear_cache and _nop portable
   Summary: __builtin___clear_cache, etc.
   Contributed-by: mbeckwit, luhenry, burban
 - 8248659: AArch64: Extend CPU Feature detection
   Reviewed-by:
   Contributed-by: mbeckwit, luhenry, burban
 - 8248656: Add Windows AArch64 platform support code
   Reviewed-by:
   Contributed-by: mbeckwit, luhenry, burban
 - 8248498: Add build system support for Windows AArch64
   Reviewed-by:
   Contributed-by: mbeckwit, luhenry, burban
 - ... and 7 more: https://git.openjdk.java.net/jdk/compare/6cee388c...2b662010

-

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/212/files
  - new: https://git.openjdk.java.net/jdk/pull/212/files/4da7b89e..2b662010

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk=212=05
 - incr: https://webrevs.openjdk.java.net/?repo=jdk=212=04-05

  Stats: 1938 lines in 234 files changed: 652 ins; 841 del; 445 mod
  Patch: https://git.openjdk.java.net/jdk/pull/212.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/212/head:pull/212

PR: https://git.openjdk.java.net/jdk/pull/212