public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pashev.igor at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libgcj/34574] wait() call hangs in _Jv_CondWait taking the monitor with it causing the application to hang
Date: Sat, 19 Oct 2013 20:24:00 -0000	[thread overview]
Message-ID: <bug-34574-4-JUrBvq154v@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-34574-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34574

--- Comment #3 from Igor Pashev <pashev.igor at gmail dot com> ---
Created attachment 31052
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31052&action=edit
Adopted test case

I've made a test case. It work for GCC 4.7 on illumos/amd64 (aka OpenSolaris)

pashev@bok:~/gcj-hang$ make clean
rm -f TestJVSynchronise19thDec
rm -f *.o *.class *.h  
pashev@bok:~/gcj-hang$ make
gcj -d . -C ThreadPool.java
ThreadPool.java:30: warning: Collection is a raw type. References to generic
type Collection<E> should be parameterized
        Collection assignments = new ArrayList(3);
        ^^^^^^^^^^
ThreadPool.java:30: warning: ArrayList is a raw type. References to generic
type ArrayList<E> should be parameterized
        Collection assignments = new ArrayList(3);
                                     ^^^^^^^^^
ThreadPool.java:67: warning: Type safety: The method add(Object) belongs to the
raw type Collection. References to generic type Collection<E> should be
parameterized
        assignments.add(r);
        ^^^^^^^^^^^^^^^^^^
ThreadPool.java:111: warning: The method destroy() from the type Thread is
deprecated
        threads[i].destroy();
        ^^^^^^^^^^^^^^^^^^^^
4 problems (4 warnings)
gcj -d . -C env_test.java
env_test.java:5: warning: The field env_test.taskNumber is never read locally
        private int taskNumber;
                    ^^^^^^^^^^
1 problem (1 warning)  
gcjh -cp . env_test
gcjh -cp . ThreadPool  
g++ -fPIC -I. -c TestJVSynchronise19thDec.cc -o TestJVSynchronise19thDec.o
gcj -o TestJVSynchronise19thDec TestJVSynchronise19thDec.o ThreadPool.java
env_test.java -lstdc++
ThreadPool.java:30: warning: Collection is a raw type. References to generic
type Collection<E> should be parameterized
        Collection assignments = new ArrayList(3);
        ^^^^^^^^^^
ThreadPool.java:30: warning: ArrayList is a raw type. References to generic
type ArrayList<E> should be parameterized
        Collection assignments = new ArrayList(3);
                                     ^^^^^^^^^
ThreadPool.java:67: warning: Type safety: The method add(Object) belongs to the
raw type Collection. References to generic type Collection<E> should be
parameterized
        assignments.add(r);
        ^^^^^^^^^^^^^^^^^^
ThreadPool.java:111: warning: The method destroy() from the type Thread is
deprecated
        threads[i].destroy();
        ^^^^^^^^^^^^^^^^^^^^
env_test.java:5: warning: The field env_test.taskNumber is never read locally
        private int taskNumber;
                    ^^^^^^^^^^
5 problems (5 warnings)


  parent reply	other threads:[~2013-10-19 20:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-34574-4@http.gcc.gnu.org/bugzilla/>
2013-06-15 16:13 ` pashev.igor at gmail dot com
2013-10-19 20:24 ` pashev.igor at gmail dot com [this message]
2015-01-11 16:02 ` pashev.igor at gmail dot com
2007-12-24 18:24 [Bug libgcj/34574] New: " rajathf at techmahindra dot com
2007-12-24 18:27 ` [Bug libgcj/34574] " rajathf at techmahindra dot com
2007-12-24 18:58 ` rajathf at techmahindra dot com
2007-12-24 22:12 ` pinskia at gcc dot gnu dot org

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=bug-34574-4-JUrBvq154v@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /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).