Closed Bug 520037 Opened 16 years ago Closed 16 years ago

heapSpace array should have correct alignment for GCHeap structure

Categories

(Tamarin Graveyard :: Garbage Collection (mmGC), defect, P2)

Other
Linux
defect

Tracking

(Not tracked)

VERIFIED FIXED
flash10.1

People

(Reporter: chris, Assigned: lhansen)

Details

Attachments

(1 file, 1 obsolete file)

User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.14) Gecko/2009090217 Ubuntu/9.04 (jaunty) Firefox/3.0.14 Build Identifier: GCHeap::Init instantiates a GCHeap object using the heapSpace array. GCHeap needs to be 8 byte aligned on some platforms (it contains double data) The heapSpace array is defined as a uint8_t array which won't necessarily have the correct alignment Reproducible: Always
A workaround patch to fix the heapSpace alignment problem It's not ideal because it replicates macros that already exist in vprof/vprof.h. I don't know the acceptable attribute/declspec values for non-GCC compilers so I have just left them as is. I think it would be useful to have a global set of macros to deal with alignment issues
Assignee: nobody → lhansen
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Target Milestone: --- → flash10.1
Attached patch Reworked patchSplinter Review
Lifts AVMPLUS_ALIGN16 into platform header files; adds AVMPLUS_ALIGN8; uses the latter to fix the heapSpace alignment.
Attachment #404095 - Attachment is obsolete: true
Attachment #404207 - Flags: review?(edwsmith)
Priority: -- → P2
Attachment #404207 - Flags: review?(edwsmith) → review+
redux changeset: 2666:aca9df4b22c6
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: