RFR (S) 8216308: StackTraceElement::fill_in can use injected Class source-file

David Holmes david.holmes at oracle.com
Mon Jan 14 13:06:53 UTC 2019


On 14/01/2019 10:32 pm, Aleksey Shipilev wrote:
> On 1/12/19 1:43 AM, David Holmes wrote:
>>>> I'm also very unclear about how the redefinition case is currently handled. It seems that we will
>>>> normally intern NULL (and presumably get a NULL or empty-string oop?) unless ShowHiddenFrames is
>>>> set, in which case we use the unknown_class_name() - regardless of whether the frame is actually
>>>> hidden or not! This seems broken to me. (Separate bug to fix that is okay if it is indeed broken.)
>>>
>>> This looks like a bug, but I'm not sure what ShowHiddenFrames is supposed to do here, or how it
>>> got there.  I think if Aleksey removed that with this patch it would be fine with me.
>>
>> I think use of ShowHiddenFrames here is completely broken. But a seperate bug and some suitable
>> archaeology is needed to fix it the right way.
> 
> Okay, are we in agreement that current patch does not break anything new? If so, let's push the

Okay I agree it doesn't break anything new though I'd be happier if the 
Backtrace::get_line_number issue was fixed. Otherwise it needs a follow 
up bug too - I'm starting to think it makes no sense to allow 
redefinition to occur within a method like this! And this is a distinct 
issue from ShowHiddenFrames.

David
-----


> current patch in its current form, and then follow up on ShowHiddenFrames in a separate issue. This
> would also make current patch simply backportable to 11.
> 
> Current patch (no changes since last time):
>    http://cr.openjdk.java.net/~shade/8216308/webrev.01/
> 
> -Aleksey
> 


More information about the hotspot-dev mailing list