Re: Building SPARC CPU code for Zero

2017-09-04 Thread John Paul Adrian Glaubitz
Hi Magnus! On 09/04/2017 03:46 PM, Magnus Ihse Bursie wrote: Here's a (not very elegant) patch that includes this file when compiling zero on sparc: Thanks for the patch. I was looking for something like that. I think it solves your immediate problem. I would be (reluctantly) willing to ac

Re: Building SPARC CPU code for Zero

2017-09-04 Thread Magnus Ihse Bursie
Here's a (not very elegant) patch that includes this file when compiling zero on sparc: diff --git a/make/lib/JvmFeatures.gmk b/make/lib/JvmFeatures.gmk --- a/make/lib/JvmFeatures.gmk +++ b/make/lib/JvmFeatures.gmk @@ -47,6 +47,9 @@ ifeq ($(call check-jvm-feature, zero), true) JVM_CFLAGS_FEA

Re: Building SPARC CPU code for Zero

2017-08-30 Thread David Holmes
Hi Magnus, On 30/08/2017 11:25 PM, Magnus Ihse Bursie wrote: On 2017-08-30 15:22, Magnus Ihse Bursie wrote: On 2017-08-30 14:02, John Paul Adrian Glaubitz wrote: Hi! I am currently working on fixing JDK-8186578:    Zero fails to build on linux-sparc due to sparc-specific code One necessary

Re: Building SPARC CPU code for Zero

2017-08-30 Thread John Paul Adrian Glaubitz
On 08/30/2017 03:25 PM, Magnus Ihse Bursie wrote: Would it be painful to duplicate the function in cpu/zero? I realize this is not elegant, but we don't have a good story for sharing platform-specific functionality with zero. :( But then we could also just move it into src/share/vm/gc/shared/,

Re: Building SPARC CPU code for Zero

2017-08-30 Thread John Paul Adrian Glaubitz
On 08/30/2017 03:22 PM, Magnus Ihse Bursie wrote: I'm sure it's *possible*. I'm also fairly certain it will be messy. :) I already guess that. Unfortunately, the usage of various defines in presence of zero seems not very well defined. That is, should SPARC be defined alongside ZERO, or shoul

Re: Building SPARC CPU code for Zero

2017-08-30 Thread Magnus Ihse Bursie
On 2017-08-30 15:22, Magnus Ihse Bursie wrote: On 2017-08-30 14:02, John Paul Adrian Glaubitz wrote: Hi! I am currently working on fixing JDK-8186578: Zero fails to build on linux-sparc due to sparc-specific code One necessary change to be able to fix this bug is to build the SPARC-specifi

Re: Building SPARC CPU code for Zero

2017-08-30 Thread Magnus Ihse Bursie
On 2017-08-30 14:02, John Paul Adrian Glaubitz wrote: Hi! I am currently working on fixing JDK-8186578: Zero fails to build on linux-sparc due to sparc-specific code One necessary change to be able to fix this bug is to build the SPARC-specific source memset_with_concurrent_readers_sparc.cp