Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2025, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2026, Oracle and/or its affiliates. All rights reserved.
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
Expand Down Expand Up @@ -75,6 +75,7 @@ static class JfrThread implements IMCThread {
public Object javaThreadId;
public Object javaName;
public Object group;
public Object virtual;

@Override
public Long getThreadId() {
Expand All @@ -100,12 +101,13 @@ public String toString() {

@Override
public int hashCode() {
return Objects.hashCode(osThreadId);
return Objects.hashCode(javaThreadId);
}

@Override
public boolean equals(Object obj) {
return this == obj || obj instanceof JfrThread && Objects.equals(osThreadId, ((JfrThread) obj).osThreadId);
return this == obj
|| obj instanceof JfrThread && Objects.equals(javaThreadId, ((JfrThread) obj).javaThreadId);
}
}

Expand Down