Review Request: JDK-8049881: jstack not working on core files
Poonam Bajaj
poonam.bajaj at oracle.com
Tue Jul 22 00:44:58 UTC 2014
Hi David,
On 7/21/2014 5:52 PM, David Holmes wrote:
> Hi Poonam,
>
> On 21/07/2014 7:29 PM, Poonam Bajaj wrote:
>> The changes for "8046282: SA update" introduced this bug. The following
>> changes fix the failure.
>>
>> Bug: JDK-8049881 <https://bugs.openjdk.java.net/browse/JDK-8049881>:
>> jstack not working on core files
>> Webrev: http://cr.openjdk.java.net/~poonam/8049881/webrev.00/
>>
>> With these changes jstack works fine with the core files.
>
> Minor nit:
>
> 58 try {
> 59 traceIDField = type.getField("_trace_id");
> 60 } catch(Exception e) {
> 61 traceIDField = null;
> 62 }
>
> Line 61 isn't needed as the field is not assigned if the exception is
> thrown - hence it remains default initialized to null.
>
Thanks for the review. I will remove the null assignment in the catch block.
> Overall though this seems a bit kludgy - a field that doesn't exist in
> the OpenJDK shouldn't be making it's absence so obvious.
>
Yes, I understand. But given the current infrastructure around the
open/closed code for the SA, this looks to be the simple and clean
solution for this problem.
regards,
Poonam
> David
>
>> Thanks,
>> Poonam
More information about the serviceability-dev
mailing list