🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #351

Re: Deadlock

#351
From: Aleksandar Pecanov
Date: Mon, 29 Sep 2003 16:01
32 lines
2343 bytes
On Sat, 27 Sep 2003 10:59:33 -0400, Gillmer J. Derge (TeamB) wrote:

> "Aleksandar Pecanov" <pecanov@mt.net.mk> wrote in message
> news:pan.2003.09.27.09.12.01.595247@mt.net.mk...
>> The following code terminates my application:
>>
>> public DBValue value( Object val ) {
>>             DBValue v = value(val);
>>             v.setValue(val);
>>
>>             return v;
>>         }
>>
>> It took me quite some time to find out that this was my problem,
>> because I didn't expect the virtual machine to become aware of a
> deadlock.
>> I'm using JDK 1.4.2 (for linux).
>> How does deadlock detection work in Java, and since when was it
> implemented?
> 
> This isn't deadlock.  It's a stack overflow due to infinite recursion.
> You're essentially running out of memory.  value calls value which calls
> value which calls value ... until you eventually run out of space to
> remember the arguments of each method call and a StackOverflowError is
> thrown.

I'm sorry, but it seems I was missunderstood. I know what was suppose to
happen, but no exception was ever throwen. The method resulted in
application shutdown, after it was first invoked. Now, for my
understanding stack overflow needs creation of instances of objects and
methods, which was not the case here.
I'm waiting on some better explanations.
Technical Details
Message-ID: <pan.2003.09.29.16.01.52.213504@mt.net.mk>
Path: arc1-ca.pugleaf.net!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <pan.2003.09.27.09.12.01.595247@mt.net.mk> <3f75a558$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,704e8f05d1fdbb6d
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2003-09-29 09:36:04 PST
From: "Aleksandar Pecanov" <pecanov@mt.net.mk>
Subject: Re: Deadlock
Date: Mon, 29 Sep 2003 18:01:52 +0200
User-Agent: Pan/0.13.4 (She had eyes like strange sins.)
Message-ID: <pan.2003.09.29.16.01.52.213504@mt.net.mk>
Newsgroups: borland.public.jbuilder.java.api
References: <pan.2003.09.27.09.12.01.595247@mt.net.mk> <3f75a558$1@newsgroups.borland.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 217.16.64.49
X-Trace: newsgroups.borland.com 1064851295 217.16.64.49 (29 Sep 2003 09:01:35 -0700)
Lines: 32
Path: arc1-ca.pugleaf.net!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail