Re: RFR: JDK-8073021: add native code coverage target into makefiles

igor.ignatyev@oracle.com igor.ignatyev at oracle.com
Mon Mar 9 12:03:40 UTC 2015


Look good to me.

-- II

----- Reply message -----
From: "Magnus Ihse Bursie" <magnus.ihse.bursie at oracle.com>
To: "Erik Joelsson" <erik.joelsson at oracle.com>, "build-dev" <build-dev at openjdk.java.net>, "hotspot-dev developers" <hotspot-dev at openjdk.java.net>
Subject: RFR: JDK-8073021: add native code coverage target into makefiles
Date: Mon, Mar 9, 2015 14:31

On 2015-03-09 12:16, Erik Joelsson wrote:
> Hello,
>
> Please review this patch. A new configure parameter 
> --enable-native-coverage is introduced. Setting it only works when 
> using gcc, for now. It adds '-fprofile-arcs -ftest-coverage 
> -fno-inline' to compiler flags and '-fprofile-arcs' to linker flags, 
> for both jdk and hotspot native libraries (but not for native test 
> libraries). Setting this causes gcc to generate code coverage 
> instrumentation into the binaries as well as generating a .gcno file 
> for each object file created. The gcno files are needed for converting 
> gathered coverage data into a comprehensible report. When native 
> coverage is active, a new image containing the .gcno files is created 
> by the images target.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8073021
> Webrev: http://cr.openjdk.java.net/~erikj/8073021/webrev.root.01/

Looks good to me.

/Magnus


More information about the build-dev mailing list