Report tools library load failures in debug builds.

Change-Id: Ie1ff313e929fc46134e58730a1d370c5d7ace8db
This commit is contained in:
Sean Keely
2017-08-09 21:46:00 -05:00
orang tua 0f05ef73ac
melakukan f1a661dedb
2 mengubah file dengan 12 tambahan dan 0 penghapusan
@@ -1177,6 +1177,12 @@ void Runtime::LoadTools() {
add = (tool_add_t)os::GetExportAddress(tool, "AddAgent");
if (add) add(this);
}
#ifndef NDEBUG
else {
if (flag().report_tool_load_failures())
fprintf(stderr, "Tool lib \"%s\" failed to load.\n", names[i].c_str());
}
#endif
}
}
}