Skip to content

Commit cfbf74f

Browse files
author
David Holmes
committed
8339159: api/java_rmi/Naming/Rebind.html crashes with SEGV from UTF8::quoted_ascii_length call
Reviewed-by: iklam, aboldtch
1 parent 6d4bd6c commit cfbf74f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hotspot/share/classfile/symbolTable.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ class SymbolTableConfig : public AllStatic {
174174
log_trace_symboltable_helper(&value, "Freeing permanent symbol");
175175
size_t alloc_size = SymbolTableHash::get_dynamic_node_size(value.byte_size());
176176
if (!SymbolTable::arena()->Afree(memory, alloc_size)) {
177-
log_trace_symboltable_helper(&value, "Leaked permanent symbol");
177+
// Can't access the symbol after Afree, but we just printed it above.
178+
NOT_PRODUCT(log_trace(symboltable)(" - Leaked permanent symbol");)
178179
}
179180
}
180181
SymbolTable::item_removed();

0 commit comments

Comments
 (0)