From jose.cornado at gmail.com Tue Oct 11 15:19:16 2016 From: jose.cornado at gmail.com (=?UTF-8?Q?Jos=C3=A9_Cornado?=) Date: Tue, 11 Oct 2016 09:19:16 -0600 Subject: Multithreaded saety Message-ID: Hello all, I have a short question about threads and jcov. if I am accessing jcov from several threads but verifying the coverage of different classes in the same running jvm, is there a risk that the results will be mixed? or are they isolated? Thanks a lot in advance! jose From Alexey.Fedorchenko at oracle.com Fri Oct 14 17:57:45 2016 From: Alexey.Fedorchenko at oracle.com (Alexey Fedorchenko) Date: Fri, 14 Oct 2016 20:57:45 +0300 Subject: Multithreaded saety In-Reply-To: References: Message-ID: <3C27FC96-5216-46A1-A307-0FED5DB40C8F@oracle.com> Hello! Please, add a short example of the situation you are trying to verify. Are you instrumenting all classes that you are interested in ? Are you using dynamic or static mode? Thank you. ?Alexey > On 11 Oct 2016, at 18:19, Jos? Cornado wrote: > > Hello all, > > I have a short question about threads and jcov. > > if I am accessing jcov from several threads but verifying the coverage of > different classes in the same running jvm, is there a risk that the results > will be mixed? or are they isolated? > > Thanks a lot in advance! > > jose From jose.cornado at gmail.com Fri Oct 14 18:41:51 2016 From: jose.cornado at gmail.com (=?UTF-8?Q?Jos=C3=A9_Cornado?=) Date: Fri, 14 Oct 2016 12:41:51 -0600 Subject: Multithreaded saety In-Reply-To: <3C27FC96-5216-46A1-A307-0FED5DB40C8F@oracle.com> References: <3C27FC96-5216-46A1-A307-0FED5DB40C8F@oracle.com> Message-ID: Hi, and thanks! the scenario is, roughly: I have a container/sandbox server. In each sandbox, the user can engage jcov to verify the output of an agent. jcov is invoked by launching separate jvms. In the event that more than one sandbox happen to run jcov concurrently, would the results run the risk of end up in the wrong listener? Or should I change the port numbers? Jose On Fri, Oct 14, 2016 at 11:57 AM, Alexey Fedorchenko < Alexey.Fedorchenko at oracle.com> wrote: > Hello! > > Please, add a short example of the situation you are trying to > verify. > Are you instrumenting all classes that you are interested in ? Are you > using dynamic or static mode? > > Thank you. > > ?Alexey > > > > On 11 Oct 2016, at 18:19, Jos? Cornado wrote: > > > > Hello all, > > > > I have a short question about threads and jcov. > > > > if I am accessing jcov from several threads but verifying the coverage of > > different classes in the same running jvm, is there a risk that the > results > > will be mixed? or are they isolated? > > > > Thanks a lot in advance! > > > > jose > > From Alexey.Fedorchenko at oracle.com Fri Oct 14 23:37:19 2016 From: Alexey.Fedorchenko at oracle.com (Alexey Fedorchenko) Date: Sat, 15 Oct 2016 02:37:19 +0300 Subject: Multithreaded saety In-Reply-To: References: <3C27FC96-5216-46A1-A307-0FED5DB40C8F@oracle.com> Message-ID: <315FA44C-E58A-42A8-B0B5-B0242EE28B93@oracle.com> If I understand your request, you are interested in the following configuration: JCov network grabber and the same static instrumented product in different VMs simultaneously. You should not expect any problems here, grabber will merge the sent coverage data from different VMs and produce one result.xml file (the merge and the result is based on specified template.xml file for grabber). Please, let us know how you are trying to receive coverage in your configuration. ?Alexey > On 14 Oct 2016, at 21:41, Jos? Cornado wrote: > > Hi, and thanks! > > the scenario is, roughly: > > I have a container/sandbox server. In each sandbox, the user can engage jcov to verify the output of an agent. > > jcov is invoked by launching separate jvms. > > In the event that more than one sandbox happen to run jcov concurrently, would the results run the risk of end up in the wrong listener? Or should I change the port numbers? > > Jose > > On Fri, Oct 14, 2016 at 11:57 AM, Alexey Fedorchenko > wrote: > Hello! > > Please, add a short example of the situation you are trying to verify. > Are you instrumenting all classes that you are interested in ? Are you using dynamic or static mode? > > Thank you. > > ?Alexey > > > > On 11 Oct 2016, at 18:19, Jos? Cornado > wrote: > > > > Hello all, > > > > I have a short question about threads and jcov. > > > > if I am accessing jcov from several threads but verifying the coverage of > > different classes in the same running jvm, is there a risk that the results > > will be mixed? or are they isolated? > > > > Thanks a lot in advance! > > > > jose > >