Re: PING: RFR: 8u backport of JDK-8237499 JFR: Include stack trace in the ThreadStart event

Yang Yi qingfeng.yy at alibaba-inc.com
Tue Feb 2 11:52:59 UTC 2021


Hi Andrew,

Do you mean I should update my patch to add these three functions together so that they work as a whole rather than adding them one by one in the future?

Please let me know if I misunderstand your reply.

Thanks,
Yang Yi


------------------------------------------------------------------
From:Andrew Hughes <gnu.andrew at redhat.com>
Send Time:2021 Feb. 2 (Tue.) 14:10
To:"YANG, Yi" <qingfeng.yy at alibaba-inc.com>
Cc:jdk8u-dev at openjdk.java.net <jdk8u-dev at openjdk.java.net>
Subject:Re: PING: RFR: 8u backport of JDK-8237499 JFR: Include stack trace in the ThreadStart event

On 10:36 Mon 01 Feb     , Yang Yi wrote:
> Can anyone help review this patch :-O
> 
> Thanks,
> Yang Yi
> 
>  ------------------Original Mail ------------------
> Sender:Yang Yi <qingfeng.yy at alibaba-inc.com>
> Send Date:Fri Jan 22 14:39:20 2021
> Recipients:jdk8u-dev at openjdk.java.net <jdk8u-dev at openjdk.java.net>
> Subject:RFR: 8u backport of JDK-8237499 JFR: Include stack trace in the ThreadStart event
> 
> Hi,
> 
> May I have a request backport of JDK-8237499?
> 
> JBS: https://bugs.openjdk.java.net/browse/JDK-8237499
> Webrev: http://cr.openjdk.java.net/~ddong/yiyang/8237499/
> testing: jdk/test/jdk/jfr/
> 
> It's useful for users to know where their threads start. This patch doesn't apply 
> cleanly but is fairly trivial. The latest jdk8u-dev has no `Thread::current_or_null` 
> function, just adding this function solves the problem.
> 
> This patch will cause another problem, e.g., the minimized VM fails to build, this 
> problem has been solved by JDK-8239886, so a follow-up backport of 
> JDK-8239886(one-line change) will be sent later.
> 
> Cheers,
> Yang Yi

While we don't want the whole of JDK-8132510 for Thread::current_or_null,
I would bring in the changes to thread.hpp so that the three methods -
JavaThread::current, Thread::current and the new Thread::current_or_null -
are interdependent, rather than duplicating each other.  See attached
patch.

Thanks,
-- 
Andrew :)

Senior Free Java Software Engineer
OpenJDK Package Owner
Red Hat, Inc. (http://www.redhat.com)

PGP Key: ed25519/0xCFDA0F9B35964222 (hkp://keys.gnupg.net)
Fingerprint = 5132 579D D154 0ED2 3E04  C5A0 CFDA 0F9B 3596 4222


More information about the jdk8u-dev mailing list