Reviewers: Jakob, danno,

Description:
Properly cleanup the transcendental subcaches.

Please review this at https://codereview.chromium.org/18487002/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/heap.h


Index: src/heap.h
diff --git a/src/heap.h b/src/heap.h
index 52ff64abadc337c80c6a8bd393fe2ed731ea1c79..d254b607b6e756d29245c5d312def4d3f00afaaf 100644
--- a/src/heap.h
+++ b/src/heap.h
@@ -2952,6 +2952,10 @@ class TranscendentalCache {
     for (int i = 0; i < kNumberOfCaches; ++i) caches_[i] = NULL;
   }

+  ~TranscendentalCache() {
+    for (int i = 0; i < kNumberOfCaches; ++i) delete caches_[i];
+  }
+
   // Used to create an external reference.
   inline Address cache_array_address();



--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to