develooper Front page | perl.perl6.internals | Postings from October 2002

Re: [perl #18127] [PATCH] Implicit stack direction probe

Thread Previous | Thread Next
Leopold Toetsch
October 29, 2002 05:43
Re: [perl #18127] [PATCH] Implicit stack direction probe
Message ID:
Jason Gloudon (via RT) wrote:

> # New Ticket Created by  Jason Gloudon 
> # Please include the string:  [perl #18127]
> # in the subject line of all future correspondence about this issue. 
> # <URL: >

I have problems to understand the line below:

(not voting against your patch - original line is similar)

> +        cur_var_ptr = (size_t)((ptrdiff_t)cur_var_ptr + PARROT_PTR_ALIGNMENT)

When PARROT_PTR_ALIGNMENT is not 1, that much pointers -1 are skipped 
during stack scanning by incrementing cur_var_ptr by sizeof(size_t) * 

As a side note: applying your patch slows down e.g. life.pasm by ~2%.
(I really don't see why).


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About