diff -r 28111f5acd64 -r 23539f11e110 hotspot/src/share/vm/opto/block.cpp --- a/hotspot/src/share/vm/opto/block.cpp Tue Sep 13 16:58:35 2011 -0700 +++ b/hotspot/src/share/vm/opto/block.cpp Tue Sep 13 20:28:00 2011 -0700 @@ -1107,7 +1107,7 @@ //------------------------------trace_frequency_order-------------------------- // Comparison function for edges -static int trace_frequency_order(const void *p0, const void *p1) { +extern "C" int trace_frequency_order(const void *p0, const void *p1) { Trace *tr0 = *(Trace **) p0; Trace *tr1 = *(Trace **) p1; Block *b0 = tr0->first_block();