Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Unified Diff: src/heap.cc

Issue 174519: Avoid triggering assert on 64 bit version. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap.cc
===================================================================
--- src/heap.cc (revision 2762)
+++ src/heap.cc (working copy)
@@ -3257,6 +3257,10 @@
void Heap::SetStackLimit(intptr_t limit) {
+ // We don't use this on x86-64 yet, but we need to remove the top
+ // bits or it won't be a valid Smi. This has no effect on 32 bit
+ // architectures.
+ limit &= 0xfffffffful;
// Set up the special root array entry containing the stack guard.
// This is actually an address, but the tag makes the GC ignore it.
set_stack_limit(Smi::FromInt(limit >> kSmiTagSize));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698