[jdk17u-dev] RFR: 8329013: StackOverflowError when starting Apache Tomcat with signed jar

Amos Shi ashi at openjdk.org
Fri Apr 26 18:48:04 UTC 2024


On Fri, 26 Apr 2024 09:14:22 GMT, Amos Shi <ashi at openjdk.org> wrote:

> Backport of [JDK-8329013](https://bugs.openjdk.org/browse/JDK-8329013)
> 
> Testing
> - Local: Test passed
>   - `RecursiveEventHelper.java`: Test results: passed: 1
> - Pipeline: 
> - Testing Machine:

src/java.base/share/classes/jdk/internal/misc/ThreadTracker.java line 46:

> 44:         public int hashCode() {
> 45:             return Long.hashCode(thread.getId());
> 46:         }

Fix compile error on `jdk17u-dev`

- The method `threadId()` does not exist in `jdk17u-dev` code base yet, but exist in current latest https://github.com/openjdk/jdk/blame/4018b2b19629ddb8cd7a56e064dfef371f23e5fa/src/java.base/share/classes/java/lang/Thread.java#L2565
- The `getId()` method logic is exact the same as `threadId()` method


    @Deprecated(since="19")
    public long getId() {
        return threadId();
    }

    public final long threadId() {
        return tid;
    }

-------------

PR Review Comment: https://git.openjdk.org/jdk17u-dev/pull/2429#discussion_r1581406794


More information about the jdk-updates-dev mailing list