Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8240796: Infinite loop in Diagnostic message code #5

wants to merge 1 commit into from
Changes from all commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.


Just for now

@@ -77,9 +77,8 @@
J2dRlsTraceLn(J2D_TRACE_INFO, "MTLGraphicsConfig_initMTL");

FILE *f = popen("system_profiler SPDisplaysDataType", "r");
int ch = getc(f);
bool metalSupport = FALSE;
while (ch != EOF)
while (getc(f) != EOF)
char str[60];

@@ -95,10 +94,10 @@
if (!metalSupport) {
fprintf(stderr, "Metal support not present");
fprintf(stderr, "Metal support not present\n");
return JNI_FALSE;
} else {
fprintf(stderr, "Metal support is present");
fprintf(stderr, "Metal support is present\n");

if (!MTLFuncs_OpenLibrary()) {
ProTip! Use n and p to navigate between commits in a pull request.