RFR: 8152341 - JVMCI test task: Unit tests for MemoryAccessProvider

Christian Thalinger christian.thalinger at oracle.com
Tue May 10 20:24:48 UTC 2016


> On May 10, 2016, at 10:21 AM, Doug Simon <doug.simon at oracle.com> wrote:
> 
>> 
>> On 10 May 2016, at 21:23, Christian Thalinger <christian.thalinger at oracle.com> wrote:
>> 
>> 
>>> On May 10, 2016, at 6:51 AM, Dmitrij Pochepko <dmitrij.pochepko at oracle.com> wrote:
>>> 
>>> Hi,
>>> 
>>> I've prepared v03 with no checkstyle errors by creating larger lines.
>>> 
>>> http://cr.openjdk.java.net/~dpochepk/8152341/webrev.03/
>>  90     @Test(dataProvider = "negative", dataProviderClass = MemoryAccessProviderData.class, expectedExceptions = {IllegalArgumentException.class })
>>  91     public void testNegativeReadPrimitiveConstant(JavaKind kind, Constant base) {
>>  92         PROVIDER.readPrimitiveConstant(kind, base, 0L,
>>  93                 kind == null ? 0 : kind.getBitCount());
>>  94     }
>> 
>> The formatting still looks odd.  I’ve noticed that sometimes Eclipse doesn’t merge lines when it actually could.  Doug, have you noticed that too?
> 
> Due to popular demand, we disabled auto-line-merging for explicit new lines:
> 
> https://github.com/graalvm/mx/commit/f1f464bc183536fe09e81ca9f5bf2bb0270964e9 <https://github.com/graalvm/mx/commit/f1f464bc183536fe09e81ca9f5bf2bb0270964e9>

Ahh!  That explains it.  It wasn’t popular demand on my side ;-)

Ok, that means that you, Dmitrij, have to manually join all lines and reformat again.  Or change the setting temporarily.  That might be easier.

> 
>> 
>>> 
>>> Thanks,
>>> Dmitrij
>>>>> On 10 May 2016, at 16:33, Dmitrij Pochepko <dmitrij.pochepko at oracle.com> wrote:
>>>>> 
>>>>> Hi,
>>>>> 
>>>>> Yes. I was using netbeans. I've applied eclipse formatter, then run mx checkstyle and fixed all warnings except " '.' is preceded with whitespace". Fixing this warning will make huge lines.
>>>> You can disable the formatter with:
>>>> 
>>>> // @formatter:off
>>>> 
>>>> code that won’t be formatted
>>>> 
>>>> // @formatter:on
>>>> 
>>>> However, the lines don’t look so long to me - maybe you need to get a larger monitor ;-)
>>>> 
>>>> -Doug
>>>> 
>>>>> Thanks,
>>>>> Dmitrij
>>>>>>> On May 6, 2016, at 4:38 AM, Dmitrij Pochepko <dmitrij.pochepko at oracle.com> wrote:
>>>>>>> 
>>>>>>> Hi,
>>>>>>> 
>>>>>>> please review patch for 8152341 - JVMCI test task: Unit tests for MemoryAccessProvider
>>>>>>> 
>>>>>>> A new tests were added for MemoryAccessProvider implementation. This patch contains tests for all MemoryAccessProvider methods (mostly a positive and few negative tests per method). A testng framework is used.
>>>>>>> 
>>>>>>> webrev: http://cr.openjdk.java.net/~dpochepk/8152341/webrev.01/
>>>>>> These two files don’t look like they have been formatted properly.  Did you use an IDE to edit these?
>>>>>> 
>>>>>>> CR: https://bugs.openjdk.java.net/browse/JDK-8152341
>>>>>>> 
>>>>>>> I've tested it on linux_x64
>>>>>>> 
>>>>>>> Thanks,
>>>>>>> Dmitrij

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20160510/6a85b7f0/attachment.html>


More information about the hotspot-compiler-dev mailing list