Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2001-05

except.inc

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Aleksey V. Vaneev

Hello,

I've already contacted Michael Van Canneyt regarding my simple enhancement to except.inc. He said he will mail core members about this.

I just wanted to ask if somebody willing to implement this thing into except.inc. To me it is so simple it will take only 15-20 minutes to get it working. And the advantage is huge.

(BTW, I still cannot understand why my code I've sent to Michael cannot be directly included).

Best regards,
Aleksey

Reply by email

Michael Van Canneyt
to Aleksey V. Vaneev
Aleksey V. Vaneev wrote 5 lines
Hello, I've already contacted Michael Van Canneyt regarding my simple enhancement to except.inc. He said he will mail core members about this.

I have.
Didn't you get my (private) mail about this already ? I know your address has been bouncing a couple of times, but I resent the message.

Show quoted text 6 lines
I just wanted to ask if somebody willing to implement this thing into except.inc. To me it is so simple it will take only 15-20 minutes to get it working. And the advantage is huge. (BTW, I still cannot understand why my code I've sent to Michael cannot be directly included).

Because:

1) The thing will definitely NOT make it into 1.0.x, since that is a bugfix-only branch. We have a strict policy towards that.

2) As it is not thread-safe, and in 1.1.x the exception stack objects are allocated on the stack anyhow, the idea looses it's main purpose. (as far as we understand it, at least)
The main reason we moved the exception objects to the stack is thread-safety.

You are of course free to implement it as an alternate heap manager, the heap manager is implemented in such a way that this can be done easily. But it will not be included in the distribution by default.

Michael.

Reply by email

Peter Vreman
Show quoted text 12 lines
Hello, I've already contacted Michael Van Canneyt regarding my simple enhancement to except.inc. He said he will mail core members about this. I just wanted to ask if somebody willing to implement this thing into except.inc. To me it is so simple it will take only 15-20 minutes to get it working. And the advantage is huge. (BTW, I still cannot understand why my code I've sent to Michael cannot be directly included).

The enhancement of using a static memory allocator?

The answer is simple: It's not threadsafe. Only the stack approach is threadsafe.

And secondly the stackapproach is faster because it doesn't do any calls or calculations.

Reply by email