Skip to content

Commit d86f3a8

Browse files
author
Michal Vala
committed
8208084: Windows build failure - "'snprintf': identifier not found"
Reviewed-by: kbarrett, coleenp
1 parent 10592b0 commit d86f3a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/hotspot/gtest/classfile/test_symbolTable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class DriverSymbolThread : public JavaTestThread {
125125

126126
// Find a symbol where there will probably be only one instance.
127127
for (int i = 0; i < 100; i++) {
128-
snprintf(symbol_name, SYM_NAME_LENGTH, "some_symbol%d", i);
128+
os::snprintf(symbol_name, SYM_NAME_LENGTH, "some_symbol%d", i);
129129
TempNewSymbol ts = SymbolTable::new_symbol(symbol_name, CATCH);
130130
if (ts->refcount() == 1) {
131131
EXPECT_TRUE(ts->refcount() == 1) << "Symbol is just created";

0 commit comments

Comments
 (0)