Skip to content

Commit

Permalink
Replace obsolete OS-dependent compilation condition
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenneg authored and viniciusfcf committed Jun 16, 2020
1 parent 2c6aafd commit 5d56bab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import com.oracle.svm.core.annotate.Alias;
import com.oracle.svm.core.annotate.TargetClass;
import com.oracle.svm.core.os.IsDefined;
import com.oracle.svm.core.posix.headers.Pthread;

/**
Expand Down Expand Up @@ -44,7 +43,8 @@ public static void printDiagnostics(PrintStream w) {
w.print("prio=");
w.print(thread.getPriority());
w.print(" tid=");
if ((IsDefined.isLinux() || IsDefined.isDarwin()) && Target_PosixJavaThreads.hasThreadIdentifier(thread)) {
if ((Platform.includedIn(Platform.LINUX.class) || Platform.includedIn(Platform.DARWIN.class))
&& Target_PosixJavaThreads.hasThreadIdentifier(thread)) {
final long nativeId = Target_PosixJavaThreads.getPthreadIdentifier(thread).rawValue();
w.print("0x");
w.println(Long.toHexString(nativeId));
Expand Down

0 comments on commit 5d56bab

Please sign in to comment.