Bug 69532 - Generated code for short-lifetime blocks should be self-checking
Summary: Generated code for short-lifetime blocks should be self-checking
Status: RESOLVED DUPLICATE of bug 69511
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (show other bugs)
Version: 2.1 CVS
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-02 23:40 UTC by Jeremy Fitzhardinge
Modified: 2003-12-05 17:41 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Fitzhardinge 2003-12-02 23:40:33 UTC
Some basic blocks are very short lived, like a stack thunk generated by gcc as
part of its nested function calling feature.

We should recognize that these basic blocks are short lived, and generate code
into them which check whether the cached generated code is still valid, or if
the original code has changed.  This could be something as simple as a checksum.

We could do this by marking certain segments, such as stack segments, as
containing highly volatile code, and therefore the codegen should build checks
into them.

Assuming that short-lived code is not performance-critical, it should be cheaper
for the code to be self-checking, than checking every other memory-modifying
operation to see if it hits some cached code.
Comment 1 Dirk Mueller 2003-12-05 17:41:56 UTC

*** This bug has been marked as a duplicate of 69511 ***
Comment 2 Jeremy Fitzhardinge 2003-12-05 19:16:52 UTC
Subject: Re:  Generated code for short-lifetime blocks should be
	self-checking

On Fri, 2003-12-05 at 08:41, Dirk Mueller wrote:
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>      
> http://bugs.kde.org/show_bug.cgi?id=69532     
> mueller@kde.org changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>              Status|UNCONFIRMED                 |RESOLVED
>          Resolution|                            |DUPLICATE
> 
> 
> 
> ------- Additional Comments From mueller@kde.org  2003-12-05 17:41 -------
> 
> 
> *** This bug has been marked as a duplicate of 69511 ***

Hm, does the KDE bugzilla not implement the bug dependency stuff?  I was
going to mark 69511 as depending on 69532.

	J