git://git.webkit.org
/
WebKit-https.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Reviewed by John.
[WebKit-https.git]
/
JavaScriptCore
/
kjs
/
collector.cpp
diff --git
a/JavaScriptCore/kjs/collector.cpp
b/JavaScriptCore/kjs/collector.cpp
index
ef371c0
..
ec6cfb6
100644
(file)
--- a/
JavaScriptCore/kjs/collector.cpp
+++ b/
JavaScriptCore/kjs/collector.cpp
@@
-88,6
+88,8
@@
bool Collector::memoryFull = false;
void* Collector::allocate(size_t s)
{
+ assert(Interpreter::lockCount() > 0);
+
if (s == 0)
return 0L;
@@
-162,6
+164,8
@@
void* Collector::allocate(size_t s)
bool Collector::collect()
{
+ assert(Interpreter::lockCount() > 0);
+
bool deleted = false;
// MARK: first mark all referenced objects recursively