Bug 1212624 - Make WeakMapBase be a LinkedListElement, r=Waldo

--HG--
extra : rebase_source : be69b304477e4eb9bca91040076dd3f28cceb055
This commit is contained in:
Steve Fink 2015-10-07 12:21:15 -07:00
parent 2fac3971ef
commit 1e786086c0
2 changed files with 6 additions and 4 deletions

View File

@ -7,13 +7,14 @@ import subprocess
def get_all_toplevel_filenames():
'''Get a list of all the files in the (Mercurial or Git) repository.'''
failed_cmds = []
try:
cmd = ['hg', 'manifest', '-q']
all_filenames = subprocess.check_output(cmd, universal_newlines=True,
stderr=subprocess.PIPE).split('\n')
return all_filenames
except:
pass
failed_cmds.append(cmd)
try:
# Get the relative path to the top-level directory.
@ -25,6 +26,6 @@ def get_all_toplevel_filenames():
stderr=subprocess.PIPE).split('\n')
return all_filenames
except:
pass
failed_cmds.append(cmd)
raise Exception('failed to run any of the repo manifest commands', cmds)
raise Exception('failed to run any of the repo manifest commands', failed_cmds)

View File

@ -119,8 +119,9 @@ WeakMapBase::sweepZone(JS::Zone* zone)
}
#ifdef DEBUG
for (WeakMapBase* m : zone->gcWeakMapList)
for (WeakMapBase* m : zone->gcWeakMapList) {
MOZ_ASSERT(m->isInList() && m->marked);
}
#endif
}