RFR(S): 8013329: [parfait] File leak in hotspot/src/share/vm/compiler/compileBroker.cpp

Roland Westrelin roland.westrelin at oracle.com
Fri May 24 07:43:37 PDT 2013

Hi Albert,

> jbs: https://jbs.oracle.com/bugs/browse/JDK-8013329
> webrev: http://cr.openjdk.java.net/~anoll/8013329/webrev.00/

FREE_C_HEAP_ARRAY is for arrays allocated with NEW_C_HEAP_ARRAY. You should use delete here, I think (even though FREE_C_HEAP_ARRAY and delete end up doing the same).

In CompileLog::finish_log_on_error, you delete log but use it afterwards log = log->_next.

Have you tried running with -XX:+LogCompilation?


More information about the hotspot-compiler-dev mailing list