Review Request (8u): 8081219: hs_err improvement: Add event logging for class redefinition to the hs_err file
David Holmes
david.holmes at oracle.com
Wed Feb 15 00:32:06 UTC 2017
On 15/02/2017 9:35 AM, coleen.phillimore at oracle.com wrote:
> On 2/14/17 6:23 PM, David Holmes wrote:
>> Hi Poonam,
>>
>> On 15/02/2017 5:09 AM, Poonam Bajaj Parhar wrote:
>>> Hello,
>>>
>>> Could I request code review of the following changes backported to 8u
>>> for the CR 8081219 <https://bugs.openjdk.java.net/browse/JDK-8081219>:
>>>
>>> Bug 8081219 <https://bugs.openjdk.java.net/browse/JDK-8081219>: hs_err
>>> improvement: Add event logging for class redefinition to the hs_err file
>>> Webrev: http://cr.openjdk.java.net/~poonam/8081219/webrev.8u/
>>>
>>> JDk9 patch applies cleanly to 8u repo.
>>
>> If the patch applies cleanly you don't need a re-review.
>>
>> That said:
>>
>> src/share/vm/prims/jvmtiRedefineClasses.hpp
>>
>> ! * Copyright (c) 2003, 2017777777,
>>
>> :) Please check copyrights are updated correctly, to 2017, in each file.
>
> The backport must have patched cleanly but wasn't hg imported. I was
> afraid I'd put the 20177777 int the file.
:) I am unclear of the exact process if you hg import the 9 changeset,
but then need to update the copyright years anyway. I guess I would
import but not commit, change the years, then commit as-if it were the
original changeset.
David
-----
> Poonam, this looks good to me. Hope it helps in customer situations.
>
> Thanks,
> Coleen
>
>>
>> Otherwise the backport looks accurate.
>>
>> Thanks,
>> David
>> -----
>>
>>> Verified the changes by manually crashing the tests under
>>> <jdk>/java/lang/instrument/. Output like the following appears in the
>>> generated hs_err log file:
>>>
>>> Classes redefined (10 events):
>>> Event: 6.383 Thread 0x00000001002e9000 redefined class name=BigClass,
>>> count=30
>>> Event: 6.578 Thread 0x00000001002e9000 redefined class name=BigClass,
>>> count=31
>>> Event: 6.774 Thread 0x00000001002e9000 redefined class name=BigClass,
>>> count=32
>>> Event: 6.969 Thread 0x00000001002e9000 redefined class name=BigClass,
>>> count=33
>>> Event: 7.165 Thread 0x00000001002e9000 redefined class name=BigClass,
>>> count=34
>>> Event: 7.360 Thread 0x00000001002e9000 redefined class name=BigClass,
>>> count=35
>>> Event: 7.554 Thread 0x00000001002e9000 redefined class name=BigClass,
>>> count=36
>>> Event: 7.750 Thread 0x00000001002e9000 redefined class name=BigClass,
>>> count=37
>>> Event: 7.945 Thread 0x00000001002e9000 redefined class name=BigClass,
>>> count=38
>>> Event: 8.141 Thread 0x00000001002e9000 redefined class name=BigClass,
>>> count=39
>>>
>>> Thanks,
>>> Poonam
>>>
>
More information about the hotspot-runtime-dev
mailing list