RFC: Dynamic groups support
Aleksey Shipilev
aleksey.shipilev at oracle.com
Tue Nov 19 08:36:57 PST 2013
On 11/19/2013 07:32 PM, Dmitry Chuyko wrote:
>
> ....
>>
>> On these grounds, I'm still standing on my initial suggestion.
>> Additional point of frustration is the rounding itself. What is the
>> semantics of this code?
>>
>> @Threads(1)
>> class T {
>> @GMB @Group @GroupThreads(0.2)
>> void testA() {}
>>
>> @GMB @Group @GroupThreads(0.8)
>> void testB() {}
>> }
>>
>> Should it run only the single thread, associated randomly with testA or
>> testB? Should it be biased to become testB? What if there are two
>> threads? Three? Four? Six? Should we search for some thread number which
>> fits these ratios exactly? Absolute counts evade these tricky questions.
> Agree. Should it also be required Sum(@GroupThreads|group)<=@Threads if
> latter specified?
I don't think so, that will complicate things internally. I also think
@Threads is still a hint, and we can count @GroupThreads to override
that hint. Do you feel strongly about enforcing the requirement you mention?
-Aleksey.
More information about the jmh-dev
mailing list