Closed Bug 440156 Opened 17 years ago Closed 17 years ago

garburator: classes with multiple user attributes are not correctly identified as stack classes

Categories

(Developer Infrastructure :: Source Code Analysis, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: benjamin, Assigned: taras.mozilla)

Details

Attachments

(1 file)

class __attribute__((user("NS_stack"))) is identified as a stack class to be rewritten. class __attribute__((user("NS_foo"))) __attribute__((user("NS_stack"))) is not. As a testcases, add the extra attribute to http://hg.mozilla.org/oink/index.cgi/file/5f83b1ad8462/garburator_tests/longevity.cc#l180
Give this a try. I didn't consider multiple attribute case when implementing this.
Attachment #326338 - Flags: review?(benjamin)
Comment on attachment 326338 [details] [diff] [review] Multi-attribute support >diff --git a/garburator.cc b/garburator.cc >+ AT_func attrFunc = asl->spec->attr->asAT_func(); Patched this to be AT_func *attrFunc, and it works. I'll push it with this change.
Attachment #326338 - Flags: review?(benjamin) → review+
Good eye. It's a little frustrating that elsa allows things like that to slip.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Product: Core → Firefox Build System
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: