Closed Bug 1160253 Opened 9 years ago Closed 4 years ago

Use mozPoisonValue in GuardObjectNotifier

Categories

(Core :: MFBT, task)

task
Not set
normal

Tracking

()

RESOLVED INCOMPLETE
Tracking Status
firefox40 --- affected

People

(Reporter: erahm, Assigned: erahm)

References

Details

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1145056 +++

As a follow up to bug 1145056 it would be nice to properly use |mozPoisonValue| [1] in GuardObjectNotifier [2] rather than #defining |MOZ_POISON|.

This cannot be done until we fix build errors related to how mfbt is linked (or not) for various targets on various platforms. I will file blocking bugs for each identified build issue.

[1] https://hg.mozilla.org/mozilla-central/annotate/4b9b12c248dc/mfbt/Poison.h#l27
[2] https://hg.mozilla.org/mozilla-central/annotate/4b9b12c248dc/mfbt/GuardObjects.h#l71
Depends on: 1160267
Depends on: 1160272
Depends on: 1160285
W/ poison.cpp added to DMD:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=75a9fd14670e

There still seem to be mozglue related linking failures on Windows and Android.

Windows:
> LINK : fatal error LNK1194: cannot delay-load 'mozglue.dll' due to import of data symbol '__imp__gMozillaPoisonValue'; link without /DELAYLOAD:mozglue.dll

Android:
> /builds/slave/try-and-api-9-d-00000000000000/build/src/mozglue/linker/ElfLoader.cpp:845: error: undefined reference to 'gMozillaPoisonValue'
> ../../dist/include/mozilla/GuardObjects.h:98: error: undefined reference to 'gMozillaPoisonValue'
> /builds/slave/try-and-api-9-d-00000000000000/build/src/mozglue/linker/Zip.cpp:42: error: undefined reference to 'gMozillaPoisonValue'
glandium suggested that if we only using |mozPoisonValue| in libxul builds we can avoid the build failures. This seems good enough to me.
Attachment #8685221 - Flags: review?(nfroyd)
Assignee: nobody → erahm
Status: NEW → ASSIGNED
Attachment #8685221 - Flags: review?(nfroyd) → review+
(See comment 4)
Keywords: checkin-needed
(In reply to Eric Rahm [:erahm] from comment #6)
> (See comment 4)

Oh right, we need to land bug 1160272 first.
Keywords: checkin-needed
Type: defect → task

Nathan's removing GuardObjectNotifier usage in bug 1223932, I'm going to abandon this.

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: