RFR(XS): 8191337: GCC 4.8 build broken after 8186571
martin.doerr at sap.com
Fri Nov 17 09:17:16 UTC 2017
Hi Stefan and Kim,
thanks for sponsoring and reviewing.
From: hotspot-gc-dev [mailto:hotspot-gc-dev-bounces at openjdk.java.net] On Behalf Of Stefan Johansson
Sent: Freitag, 17. November 2017 10:07
To: hotspot-gc-dev at openjdk.java.net
Subject: Re: RFR(XS): 8191337: GCC 4.8 build broken after 8186571
On 2017-11-15 21:59, Kim Barrett wrote:
>> On Nov 15, 2017, at 11:23 AM, Doerr, Martin <martin.doerr at sap.com> wrote:
>> I’d like to build the VM with GCC 4.8.5, but I got the following error while linking:
>> g1FullGCOopClosures.hpp:140: undefined reference to `void G1VerifyOopClosure::do_oop_nv<unsigned int>(unsigned int*)'
>> It can be fixed by:
>> Please review. I will also need a sponsor.
>> Thanks and best regards,
> Rather than moving the do_oop definitions, maybe instead add explicit
> instantiations of the template in the .cpp file, e.g.
> template void G1VerifyOopClosure::do_oop_nv(oop*);
> template void G1VerifyOopClosure::do_oop_nv(narrowOop*);
I spoke to Martin and we agreed on using this solution. Martin created a
new webrev and I will put myself as the second reviewer and push:
> I'm not sure what's different about gcc4.9 (what we test with at
> Oracle) that would have allowed the existing code to work at all.
More information about the hotspot-gc-dev