Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Oct 2013 21:55:51 +0800 (SGT)
From:      Patrick Dung <patrick_dkt@yahoo.com.hk>
To:        freebsd hackers <freebsd-hackers@freebsd.org>
Subject:   Re: openjdk7 dtrace support
Message-ID:  <1381326951.68334.YahooMailNeo@web193502.mail.sg3.yahoo.com>
In-Reply-To: <1381209858.81219.YahooMailNeo@web193501.mail.sg3.yahoo.com>
References:  <1381209858.81219.YahooMailNeo@web193501.mail.sg3.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello, 


I would like to know it there is dtrace support in the openjdk7?

Thanks,
Patrick Dung




On Tuesday, October 8, 2013 1:26 PM, Patrick Dung <patrick_dkt@yahoo.com.hk> wrote:
 
Hi all,

I would like to know it there is dtrace support in the openjdk7?

Thanks,
Patrick
_______________________________________________
freebsd-java@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org"
From owner-freebsd-hackers@FreeBSD.ORG  Wed Oct  9 15:14:45 2013
Return-Path: <owner-freebsd-hackers@FreeBSD.ORG>
Delivered-To: freebsd-hackers@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTP id AF796F82;
 Wed,  9 Oct 2013 15:14:45 +0000 (UTC)
 (envelope-from adrian.chadd@gmail.com)
Received: from mail-qc0-x22e.google.com (mail-qc0-x22e.google.com
 [IPv6:2607:f8b0:400d:c01::22e])
 (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits))
 (No client certificate requested)
 by mx1.freebsd.org (Postfix) with ESMTPS id 5F65B2E27;
 Wed,  9 Oct 2013 15:14:45 +0000 (UTC)
Received: by mail-qc0-f174.google.com with SMTP id n9so680144qcw.33
 for <multiple recipients>; Wed, 09 Oct 2013 08:14:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:sender:in-reply-to:references:date:message-id:subject
 :from:to:cc:content-type;
 bh=+eNsbE1NRFViz/zO8E1B3OUoNCt2PqOv23P24xczCfM=;
 b=hXx2KqSOu92S+tZ6p9mYvPncMx9lS0jc7N8nHf1zKGW9VbH24U0OyaIgMTFYAe6Poc
 4MLzBNB8Pg10EhpsLWTZwTHcN116HJq0CjtGdwTdMTXfkMvXZVWRZ+UDkjE/lMLXIFQ0
 IZJqTnQIcRHTfTILG+o4rsmKbvd99ICb42tI/YAgx0/n+F0nY0ds4oDRNQn574J1dhAJ
 SL+c0qqcOvPQRjlluMv3v69h8uKEeSyajMiMBVVGv/n/w9qKpTfRc3sHFMYourXy2SDm
 xx8rXFzxD36/dWfDHB6lUlmQ91NAz5iqfTiyAHM7YwG5Iltd8gQaU4feROF1Hr99XxvV
 nUzQ==
MIME-Version: 1.0
X-Received: by 10.49.59.115 with SMTP id y19mr10271335qeq.8.1381331659464;
 Wed, 09 Oct 2013 08:14:19 -0700 (PDT)
Sender: adrian.chadd@gmail.com
Received: by 10.224.207.66 with HTTP; Wed, 9 Oct 2013 08:14:19 -0700 (PDT)
In-Reply-To: <525519F1.3050703@FreeBSD.org>
References: <525519F1.3050703@FreeBSD.org>
Date: Wed, 9 Oct 2013 08:14:19 -0700
X-Google-Sender-Auth: mRCdePu_EJtS8i1PFcXjjdm33Gk
Message-ID: <CAJ-Vmok6he9NFxpmZKQo_JfBQmmqnO5O9K+qQBLYjPCGXAcW6w@mail.gmail.com>
Subject: Re: taskqueue_drain_all
From: Adrian Chadd <adrian@freebsd.org>
To: Andriy Gapon <avg@freebsd.org>
Content-Type: text/plain; charset=ISO-8859-1
X-Content-Filtered-By: Mailman/MimeDel 2.1.14
Cc: "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
X-BeenThere: freebsd-hackers@freebsd.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: Technical Discussions relating to FreeBSD
 <freebsd-hackers.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-hackers>, 
 <mailto:freebsd-hackers-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-hackers>;
List-Post: <mailto:freebsd-hackers@freebsd.org>
List-Help: <mailto:freebsd-hackers-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-hackers>,
 <mailto:freebsd-hackers-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 09 Oct 2013 15:14:45 -0000

+1

Very useful :)


-a


On 9 October 2013 01:55, Andriy Gapon <avg@freebsd.org> wrote:

>
> I would like to propose to extend taskqueue API with taskqueue_drain_all.
> A potential use case: I have a private taskqueue, several kinds of tasks
> get
> executed via it and then I want to make sure that all of them are
> completed.
> Obviously, I have a way to ensure that no new ones get enqueued.
>
> Is this a good addition?
> Or should like consider looping over all of my tasks externally to
> taskqueue
> implementation?
>
> A quick prototype:
>
> --- a/sys/kern/subr_taskqueue.c
> +++ b/sys/kern/subr_taskqueue.c
> @@ -316,6 +316,7 @@ taskqueue_run_locked(struct taskqueue *queue)
>                 wakeup(task);
>         }
>         TAILQ_REMOVE(&queue->tq_active, &tb, tb_link);
> +       wakeup(&queue->tq_active);
>  }
>
>  void
> @@ -402,6 +403,22 @@ taskqueue_drain(struct taskqueue *queue, struct task
> *task)
>  }
>
>  void
> +taskqueue_drain_all(struct taskqueue *queue)
> +{
> +       struct task *task;
> +
> +       TQ_LOCK(queue);
> +       while ((task = STAILQ_FIRST(&queue->tq_queue)) != NULL) {
> +               while (task->ta_pending != 0 || task_is_running(queue,
> task))
> +                       TQ_SLEEP(queue, task, &queue->tq_mutex, PWAIT,
> "-", 0);
> +       }
> +       while (TAILQ_FIRST(&queue->tq_active) != NULL)
> +                       TQ_SLEEP(queue, &queue->tq_active,
> +                           &queue->tq_mutex, PWAIT, "-", 0);
> +       TQ_UNLOCK(queue);
> +}
> +
> +void
>  taskqueue_drain_timeout(struct taskqueue *queue,
>      struct timeout_task *timeout_task)
>  {
>
>
> --
> Andriy Gapon
>
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1381326951.68334.YahooMailNeo>