Closed Bug 557611 Opened 14 years ago Closed 14 years ago

Introduce a 'tweaks' system

Categories

(Tamarin Graveyard :: Virtual Machine, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED
flash10.1

People

(Reporter: lhansen, Assigned: lhansen)

References

Details

Attachments

(1 file)

The idea of a tweak is a mini-feature that has a default value that's usually right but that may be changed to compensate for some system bizarreness or bug.  Several of our AVMFEATURE_ names should probably become AVMTWEAK_ names because they fall into this category.

We want the same exposure for tweaks as for features, but we don't necessarily want to require every platform to worry about the available tweaks, which is why a default value is provided.  If the default value becomes abused - by using a tweak rather than a feature where a feature is called for - the default value facility may be removed in the future.
Attachment #437367 - Flags: review?(edwsmith)
It is probably also the case that numerous #ifdef nests in the source code can easily be converted to tweaks, for example in MathUtilsUnix.cpp we see this:

// MacOS X Intel 10.5 incorrectly make ceil(-0.5) -> 0.0 instead of -0.0
// special-case and correct.
#if defined(AVMPLUS_MAC) && (defined(AVMPLUS_IA32) || defined(AVMPLUS_AMD64))
  ...
#else
  ...
#endif
Comment on attachment 437367 [details] [diff] [review]
The tweaks system

Nothing obviously wrong, and since this blocks a 10.1 bug, i'm not applying any polishing compound to this review.
Attachment #437367 - Flags: review?(edwsmith) → review+
tamarin-redux-argo changeset:   3944:a10b00432457
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Follow-up issues logged as bug #557629 and bug #557633.
QA Contact: vm → brbaker
Marking as verified/fixed per conversation with Lars
Status: RESOLVED → VERIFIED
Flags: in-testsuite-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: