From: Sascha Brawer <brawer@dandelis.ch>
To: <mauve-discuss@sources.redhat.com>, Archie Cobbs <archie@dellroad.org>
Cc: <commit-classpath@gnu.org>
Subject: Re: Mauve patch
Date: Tue, 06 Apr 2004 11:52:00 -0000 [thread overview]
Message-ID: <20040406115205.3060@smtp.mail.ch.easynet.net> (raw)
In-Reply-To: <200404060330.i363UY1B018067@arch20m.dellroad.org>
Archie Cobbs <archie@dellroad.org> wrote on Mon, 5 Apr 2004 22:30:34 -0500:
>Is this the right place to send Mauve patches? If not please point me
>(or the patch) in the right direction.
There's a list mauve-discuss@sources.redhat.com (presumably with mostly
the same subscribers as commit-classpath@gnu.org, although there seem to
be also a few non-Classpath people there).
>In JC, phantom references are enqueued on the next finalizer run
>after the one that finalizes the object, and finalizer runs only
>happen after a GC cycle, therefore the patch below is required to
>make JC pass the test; ie, the test is being too strict.
>Index: gnu/testlet/java/lang/ref/PhantomReference/phantom.java
>===================================================================
>RCS file: /cvs/mauve/mauve/gnu/testlet/java/lang/ref/PhantomReference/
>phantom.java,v
>retrieving revision 1.1
>diff -u -r1.1 phantom.java
>--- gnu/testlet/java/lang/ref/PhantomReference/phantom.java 27 Sep
>2001 15:44:09 -0000 1.1
>+++ gnu/testlet/java/lang/ref/PhantomReference/phantom.java 6 Apr
>2004 03:28:19 -0000
>@@ -70,6 +70,8 @@
>
> PhantomReference wr = try1 (q, harness);
> System.gc ();
>+ Thread.yield();
>+ System.gc ();
>
> Reference r = null;
> try
Does this really guarantee that the finalizer has run? Couldn't this also
lead to any other thread, such as some VM-internal thread, without
running the finalizer? If so, you might want to call Object.notify in the
finalizer and Object.wait at the above code location.
-- Sascha
Sascha Brawer, brawer@dandelis.ch, http://www.dandelis.ch/people/brawer/
next parent reply other threads:[~2004-04-06 11:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200404060330.i363UY1B018067@arch20m.dellroad.org>
2004-04-06 11:52 ` Sascha Brawer [this message]
2004-04-06 12:15 ` Ingo Prötel
2004-04-06 14:08 ` Archie Cobbs
2004-04-07 5:45 ` Tom Tromey
2004-04-07 6:01 ` Stephen Crawley
2004-04-07 14:53 ` Archie Cobbs
2004-04-15 21:04 ` Mark Wielaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040406115205.3060@smtp.mail.ch.easynet.net \
--to=brawer@dandelis.ch \
--cc=archie@dellroad.org \
--cc=commit-classpath@gnu.org \
--cc=mauve-discuss@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).