src/cpu/ppc/vm/templateInterpreter_ppc.cpp

Print this page
rev 6136 : 8038201: Clean up misleading usage of malloc() in init_system_properties_values()
Summary: Add missing freeing of memory or use local variable. Also add a 'const' to avoid gcc write-string warnings on ppc.

*** 1670,1680 **** #ifndef PRODUCT address TemplateInterpreterGenerator::generate_trace_code(TosState state) { //__ flush_bundle(); address entry = __ pc(); ! char *bname = NULL; uint tsize = 0; switch(state) { case ftos: bname = "trace_code_ftos {"; tsize = 2; --- 1670,1680 ---- #ifndef PRODUCT address TemplateInterpreterGenerator::generate_trace_code(TosState state) { //__ flush_bundle(); address entry = __ pc(); ! const char *bname = NULL; uint tsize = 0; switch(state) { case ftos: bname = "trace_code_ftos {"; tsize = 2;