RFR(S): 8252407: Build failure with gcc-8+ and asan

Eric Liu eric.c.liu at arm.com
Wed Sep 23 06:10:07 UTC 2020


Hi Kim, 

Sorry for the delay.  

This patch removes a redundant string copy in NetworkInterface.c to avoid string-truncation
warning. Other warnings we talked before, which are unable to completely fix in different version
of gcc, I have to use pragma to suppress them as a workaround. 

This patch now could compile with gcc-7, gcc-8, gcc-9, gcc-10 both with or without asan.

[TESTS]
Jtreg: hotspot::hotspot_all_no_apps, jdk::jdk_core and langtools::tier1.
No new failure found.

http://cr.openjdk.java.net/~qfeng/ericliu/jdk/stringop_trunc/webrev.01/
https://bugs.openjdk.java.net/browse/JDK-8252407


Thanks,
Eric


More information about the net-dev mailing list