Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Virtual Machine / January 2005

Tip: Looking for answers? Try searching our database.

asynchronous exceptions

Thread view: 
blair - 19 Dec 2004 12:29 GMT
I've been reading about exceptions in the JVM spec and am confused
about what exceptions are asynchronous. Sec 2.16.4 states that
InternalError may be delivered asynchronously, but does not make this
claim for any other of the subclasses of VirtualMachineError.  But sec
6.3 mentions that any subclass of VirtualMachineError may be thrown at
any time during the operation of the JVM.  So are all subclasses of VME
asynchronous?  And if not, what is the difference between InternalError
being raised asynchronously and OutOfMemoryError being raised at any
time?
Artur Biesiadowski - 06 Jan 2005 22:17 GMT
> I've been reading about exceptions in the JVM spec and am confused
> about what exceptions are asynchronous. Sec 2.16.4 states that
[quoted text clipped - 5 lines]
> being raised asynchronously and OutOfMemoryError being raised at any
> time?

My understanding is that 'throw at any time' means throwing at any
moment if error happened at this very moment. For example, you can throw
OOME at any bytecode which allocates memory directly or indirectly - but
you have to throw it before next bytecode is executed. On the other
hand, asynchronous throw can happen at any point in the future, possibly
even in different thread, from place which triggered the error itself.

It is just my idea how to interpret that - I'm in no way expert on the
subject.

Artur


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.