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

Set a default thread name for java.util.TimerThread #640

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

pshipton
Copy link
Member

@pshipton pshipton commented Aug 9, 2023

Issue eclipse-openj9/openj9#11930

The name isn't set in the TimerThread constructor, it calls Thread.genThreadName() which consumes the "Thread-0" name. This causes the test to fail because it expects this name. This could have an impact on / confuse users which expect consistent thread names. Depending on the timing of the Attach API AttachHandler / FilelockTimer creation, an application can get different default thread names from run to run.

@keithc-ca
Copy link
Member

Please explain how this helps; see eclipse-openj9/openj9#11930 (comment).

@pshipton
Copy link
Member Author

pshipton commented Aug 9, 2023

Added a new comment eclipse-openj9/openj9#11930 (comment)

@pshipton pshipton changed the title Set a thread name for java.util.TimerThread Set a default thread name for java.util.TimerThread Aug 9, 2023
@pshipton
Copy link
Member Author

pshipton commented Aug 9, 2023

Updated the commit and PR with the details as well.

@keithc-ca
Copy link
Member

The commit should mention genThreadName(), not newName(); the OpenJ9 implementation of Thread is used only for versions before Java 19.

Issue eclipse-openj9/openj9#11930

The name isn't set in the TimerThread constructor, it calls
Thread.genThreadName() which consumes the "Thread-0" name. This causes
the test to fail because it expects this name. This could have an impact
on / confuse users which expect consistent thread names. Depending on
the timing of the Attach API AttachHandler / FilelockTimer creation, an
application can get different default thread names from run to run.

Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
@pshipton
Copy link
Member Author

pshipton commented Aug 9, 2023

Updated it.

@keithc-ca
Copy link
Member

Jenkins test sanity amac jdknext

pshipton added a commit to pshipton/openj9-openjdk-jdk21 that referenced this pull request Aug 9, 2023
Issue eclipse-openj9/openj9#11930

The name isn't set in the TimerThread constructor, it calls
Thread.genThreadName() which consumes the "Thread-0" name. This causes
the test to fail because it expects this name. This could have an impact
on / confuse users which expect consistent thread names. Depending on
the timing of the Attach API AttachHandler / FilelockTimer creation, an
application can get different default thread names from run to run.

Backport of ibmruntimes/openj9-openjdk-jdk#640

Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
pshipton added a commit to pshipton/openj9-openjdk-jdk17 that referenced this pull request Aug 9, 2023
Issue eclipse-openj9/openj9#11930

The name isn't set in the TimerThread constructor, it calls
Thread.newName() which consumes the "Thread-0" name. This causes the
test to fail because it expects this name. This could have an impact on
/ confuse users which expect consistent thread names. Depending on the
timing of the Attach API AttachHandler / FilelockTimer creation, an
application can get different default thread names from run to run.

Backport of ibmruntimes/openj9-openjdk-jdk#640

Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
pshipton added a commit to pshipton/openj9-openjdk-jdk11 that referenced this pull request Aug 9, 2023
Issue eclipse-openj9/openj9#11930

The name isn't set in the TimerThread constructor, it calls
Thread.newName() which consumes the "Thread-0" name. This causes the
test to fail because it expects this name. This could have an impact on
/ confuse users which expect consistent thread names. Depending on the
timing of the Attach API AttachHandler / FilelockTimer creation, an
application can get different default thread names from run to run.

Backport of ibmruntimes/openj9-openjdk-jdk#640

Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
@keithc-ca keithc-ca merged commit 88d4c48 into ibmruntimes:openj9 Aug 9, 2023
5 checks passed
pshipton added a commit to pshipton/openj9-openjdk-jdk21 that referenced this pull request Aug 10, 2023
Issue eclipse-openj9/openj9#11930

The name isn't set in the TimerThread constructor, it calls
Thread.genThreadName() which consumes the "Thread-0" name. This causes
the test to fail because it expects this name. This could have an impact
on / confuse users which expect consistent thread names. Depending on
the timing of the Attach API AttachHandler / FilelockTimer creation, an
application can get different default thread names from run to run.

Backport of ibmruntimes/openj9-openjdk-jdk#640

Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
pshipton added a commit to pshipton/openj9-openjdk-jdk17 that referenced this pull request Aug 10, 2023
Issue eclipse-openj9/openj9#11930

The name isn't set in the TimerThread constructor, it calls
Thread.newName() which consumes the "Thread-0" name. This causes the
test to fail because it expects this name. This could have an impact on
/ confuse users which expect consistent thread names. Depending on the
timing of the Attach API AttachHandler / FilelockTimer creation, an
application can get different default thread names from run to run.

Backport of ibmruntimes/openj9-openjdk-jdk#640

Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
pshipton added a commit to pshipton/openj9-openjdk-jdk11 that referenced this pull request Aug 10, 2023
Issue eclipse-openj9/openj9#11930

The name isn't set in the TimerThread constructor, it calls
Thread.newName() which consumes the "Thread-0" name. This causes the
test to fail because it expects this name. This could have an impact on
/ confuse users which expect consistent thread names. Depending on the
timing of the Attach API AttachHandler / FilelockTimer creation, an
application can get different default thread names from run to run.

Backport of ibmruntimes/openj9-openjdk-jdk#640

Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
pshipton added a commit to pshipton/openj9-openjdk-jdk8 that referenced this pull request Aug 10, 2023
Issue eclipse-openj9/openj9#11930

The name isn't set in the TimerThread constructor, it calls
Thread.newName() which consumes the "Thread-0" name. This causes the
test to fail because it expects this name. This could have an impact on
/ confuse users which expect consistent thread names. Depending on the
timing of the Attach API AttachHandler / FilelockTimer creation, an
application can get different default thread names from run to run.

Backport of ibmruntimes/openj9-openjdk-jdk#640

Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants