RFR: 8029630: Print thread id hex representation in error messages. (original) (raw)
harold seigel harold.seigel at oracle.com
Fri Apr 10 20:44:39 UTC 2015
- Previous message: RFR: 8029630: Print thread id hex representation in error messages.
- Next message: 8u60 backport RFR (M) 8067662: "java.lang.NullPointerException: Method name is null" from StackTraceElement.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Max,
The change looks good.
Harold
On 4/9/2015 3:11 PM, Max Ockner wrote:
Hi again, After working past some build issues, I have a new webrev. I've changed %x to PTRFORMAT, and I've removed the modification to thread.cpp
New webrev: http://cr.openjdk.java.net/~mockner/8029630.4/ Thanks, Max On 4/6/2015 9:10 PM, David Holmes wrote: Hi Max,
On 3/04/2015 5:38 AM, Max Ockner wrote: Hello, Please review this change:
Bug: https://bugs.openjdk.java.net/browse/JDK-8029630 Webrev: http://cr.openjdk.java.net/~mockner/8029630.2/ Summary: Existing error messages for vm crashes print the decimal representation of the current thread id. The message format has been changed to print the hex value of the thread id. src/share/vm/runtime/thread.cpp The change is incorrect and unnecessary. 'this' is a pointer type so INTPTRFORMAT seems correct (though it may need p2i(this)?) while %x assumes 'this' is always 32-bit. Further INTPTRFORMAT is already hex not decimal. src/share/vm/utilities/vmError.cpp As Thomas pointed out%x assumes 32-bit and so is incorrect for intx type. As intx is a typedef for intptrt then INTPTRFORMAT should be usable here as well. David Tested with jtreg runtime to make sure nothing was broken. I tested the new functionality separately. I crashed the vm and examined the debugger output to make sure the hexadecimal thread id printed in the error message matched one of the threads listed by the debugger. Thanks, Max
- Previous message: RFR: 8029630: Print thread id hex representation in error messages.
- Next message: 8u60 backport RFR (M) 8067662: "java.lang.NullPointerException: Method name is null" from StackTraceElement.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]