This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: documentation on "sjlj exceptions", DWARF2, etc?


Bryce McKinlay wrote:

> Adam Megacz wrote:
> 
>> Okay, so I'm trying to assess the performance implications here. My
>> code enters lots of try blocks but almost never throws exceptions
>> during normal operation.
>>
>> Is setjmp() an actuall function call, or syntactic sugar for some
>> platform-specific opcode? If the former is the case, does it get
>> inlined?

Tradionally, setjmp is a function written in assembler that saves
all the registers (or at least all the callee-save ones) in the jmpbuf.
More sophisticated ones are aware of setjmp - but I believe they
still have to call a function on most platforms.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]