Open Bug 1359903 Opened 7 years ago Updated 2 years ago

convert equality assertions against PR_GetCurrentThread to use NS_ASSERT_OWNINGTHREAD instead

Categories

(Core :: General, defect)

defect

Tracking

()

Tracking Status
firefox55 --- affected

People

(Reporter: froydnj, Unassigned)

References

Details

The OWNINGTHREAD version is shorter and makes future changes to how owning thread assertions work much easier.

Undecided whether filing dependent bugs on this would be easier, or just doing all the work here would be easier.
Maybe we could just have a few sub-bugs by directory. The main directories that I see showing up are dom, netwerk, and xpcom. I'll file these tomorrow unless you get to it first.

I realized we also should do something about things like:
  MOZ_ASSERT(PR_GetCurrentThread() == gSocketThread);
Maybe we could just have a custom thing inside netwerk for that.
Flags: needinfo?(wmccloskey)
Depends on: 1360236
I have some patches for a few things in DOM.  While some are straightforward, some of them are definitely not. :(
Depends on: 1360538
Flags: needinfo?(wmccloskey)
(In reply to Nathan Froyd [:froydnj] from comment #2)
> I have some patches for a few things in DOM.  While some are
> straightforward, some of them are definitely not. :(

I could take care the one in dom/indexedDB and dom/filehandle if you haven't done it.
(In reply to Bevis Tseng[:bevis][:btseng] from comment #3)
> (In reply to Nathan Froyd [:froydnj] from comment #2)
> > I have some patches for a few things in DOM.  While some are
> > straightforward, some of them are definitely not. :(
> 
> I could take care the one in dom/indexedDB and dom/filehandle if you haven't
> done it.

That would be fantastic, thank you!
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.