RFR(XS): 8132980: Improve stability of whitebox methods getCodeBlob and freeCodeBlob (original) (raw)
Igor Ignatyev igor.ignatyev at oracle.com
Thu Sep 10 17:23:55 UTC 2015
- Previous message: RFR(XS): 8132980: Improve stability of whitebox methods getCodeBlob and freeCodeBlob
- Next message: RFR(XXS): 8135179: Fix conversion warning after 8067341
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Kirill,
the change looks good to me. thanks for fixing that.
Igor
On 09/09/2015 08:25 PM, Kirill Zhaldybin wrote:
Stanislav,
"addr == 0" in freeCodeBlob is just ignored since it's traditional for C/C++ to allow free(0) but when we are trying to read something from addr == 0 in getCodeBlob it looks like error (and crash JVM actually). Thank you. Regards. Kirill On 09.09.2015 19:42, Stas Smirnov wrote: Hi,
changes looks good, one small remark, in one case when "addr == 0" you just make a return and in another case you THROWMSGNULL is there any specific reason for a different way of handling the same condition? On 08.09.2015 19:37, Kirill Zhaldybin wrote: Hi!
Could you please review the following patch for WB methods? I added checks for negative size and null address values (where applicable) for getCodeBlob, allocateCodeBlob and freeCodeBlob, added regression test. CR: https://bugs.openjdk.java.net/browse/JDK-8132980 Webrev: hotspot: http://cr.openjdk.java.net/~kzhaldyb/webrevs/JDK-8132980/webrev.00/ Thanks, Kirill
- Previous message: RFR(XS): 8132980: Improve stability of whitebox methods getCodeBlob and freeCodeBlob
- Next message: RFR(XXS): 8135179: Fix conversion warning after 8067341
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]