Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Parrot catches null Px register access
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Melvin Smith  
View profile  
 More options Oct 27 2003, 10:49 pm
Newsgroups: perl.perl6.internals
From: mrjoltc...@mindspring.com (Melvin Smith)
Date: Mon, 27 Oct 2003 22:40:45 -0500
Local: Mon, Oct 27 2003 10:40 pm
Subject: [COMMIT] Parrot catches null Px register access
Just in time for the "screamin' punkin" release....

I've patched in a quick and dirty implementation of the previous
discussion regarding Parrot segfaulting on access to a null register.
Of course, HLL compilers shouldn't generate code that results in
an uninitialized Px register, but we would like to do something more
elegant than just dump core.

You'll have to edit interpreter.h and set PARROT_CATCH_NULL to 1
to enable it.

The patch adds the Null PMC class, only instantiated once in
system memory. PMC register banks are set to PMCNULL now.
The null op returns PMCNULL as well. Also patched it into extend.c
so extension writers can get at it.

I didn't turn it on by default yet as we need to check over the code
to see where assumptions are being made about PMC pointers
just being NULL. However, all tests pass except the pmc create test
(you can't do a new .Null).

This is good enough to start, I think.
We should also integrate the null.pmc generation into pmc2c or pmc2c2.

-Melvin


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.