AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Stackframes - what do they look like?

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help
View previous topic :: View next topic  
Author Message
Brian
Guest





PostPosted: Mon Jul 18, 2005 8:28 pm    Post subject: Stackframes - what do they look like? Reply with quote



Hi -

What does a typical Java stcak frame look like? I'm not familiar
with the machine architecture but I'd imagine some minimum number
of registers get pushed per method call. And I'd imagine it's
non-trivial seeing as the stack frame can be overflowed easily.
Is there any intelligence to strip stack frames to a minimum?

So the idea is that OO languages offer encapsulation whereby
methods hide data completely. But each of those methods come
at a performance hit. Or is it trivial?

Let's say there are two IO stream classes, buffered or otherwise.
The calling method simply wants to get data from one stream to
the other as quickly as possible.

Isn't having a "isAvailable()" (or similar) call right in the
middle of that loop counterproductive?

Curiosity is killing me. I never quite find this stuff in
books or classes. I would guess default access modifier
(package?) has some strategic value for allowing nearby classes
to access data directly.

Any ideas or comments appreciated.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.