Revision: 2935
Author: [email protected]
Date: Fri Sep 18 05:02:36 2009
Log: Fix --heap-stats option on X64
Review URL: http://codereview.chromium.org/210020
http://code.google.com/p/v8/source/detail?r=2935

Modified:
  /branches/bleeding_edge/src/spaces.cc

=======================================
--- /branches/bleeding_edge/src/spaces.cc       Wed Sep  2 07:25:05 2009
+++ /branches/bleeding_edge/src/spaces.cc       Fri Sep 18 05:02:36 2009
@@ -1906,7 +1906,7 @@
        int rset = Memory::int_at(rset_addr);
        if (rset != 0) {
          // Bits were set
-        int intoff = rset_addr - p->address();
+        int intoff = rset_addr - p->address() - Page::kRSetOffset;
          int bitoff = 0;
          for (; bitoff < kBitsPerInt; ++bitoff) {
            if ((rset & (1 << bitoff)) != 0) {
@@ -2171,7 +2171,7 @@
        int rset = Memory::int_at(rset_addr);
        if (rset != 0) {
          // Bits were set
-        int intoff = rset_addr - p->address();
+        int intoff = rset_addr - p->address() - Page::kRSetOffset;
          int bitoff = 0;
          for (; bitoff < kBitsPerInt; ++bitoff) {
            if ((rset & (1 << bitoff)) != 0) {

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to